summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-node/src/meshbay_node/daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/daemon.py')
-rw-r--r--packages/meshbay-node/src/meshbay_node/daemon.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/daemon.py b/packages/meshbay-node/src/meshbay_node/daemon.py
index 5c6d86c..2130440 100644
--- a/packages/meshbay-node/src/meshbay_node/daemon.py
+++ b/packages/meshbay-node/src/meshbay_node/daemon.py
@@ -476,6 +476,11 @@ class NodeDaemon:
install_ice_filter(
self._config.node.ice_interfaces or None,
)
+ # aiortc keeps only the FIRST entry of RTCConfiguration.iceServers, so
+ # the multi-STUN fallback only exists on the node if aioice itself
+ # fans out — see transport/stun_multi.
+ from meshbay_node.transport.stun_multi import install as install_stun_multi
+ install_stun_multi(self._config.node.stun_servers or None)
first = next(iter(groups_ctx.values()), None)
if WEBRTC_AVAILABLE: