proper relay switch, fix wasm
This commit is contained in:
@@ -130,13 +130,16 @@ impl RoutingDomainDetailCommon {
|
||||
|
||||
// Check if any of our dialinfo require a relay for signaling
|
||||
// FullConeNAT requires a relay but it does not have to be published because it does not require signaling
|
||||
let mut publish_relay = false;
|
||||
for did in self.dial_info_details() {
|
||||
if did.class.requires_signal() {
|
||||
publish_relay = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
let mut publish_relay = node_info.network_class().inbound_wants_relay() || node_info.network_class().outbound_wants_relay();
|
||||
if !publish_relay {
|
||||
// Check the dialinfo to see if they might want to publish a relay for signalling specifically
|
||||
for did in self.dial_info_details() {
|
||||
if did.class.requires_signal() {
|
||||
publish_relay = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let relay_info = if publish_relay {
|
||||
self
|
||||
|
Reference in New Issue
Block a user