mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-11-29 15:36:36 -05:00
proper relay switch, fix wasm
This commit is contained in:
parent
a9c173e52f
commit
248b21a951
2 changed files with 15 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue