diff options
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py b/packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py index 31cc83c..4bb4e08 100644 --- a/packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py +++ b/packages/meshbay-node/src/meshbay_node/transport/webrtc/channel.py @@ -82,6 +82,9 @@ class _DataChannelBuffer: def _get_remote_ip(pc: RTCPeerConnection) -> str: """Best-effort extraction of the remote peer IP from the ICE transport.""" + reported = getattr(pc, "remote_ip", None) + if reported is not None: # held by a connection process (workers.py) + return reported try: dtls = pc.sctp and pc.sctp.transport ice = dtls and dtls.transport |