From 72f847fadeb9a2f34ac63f9fac8a9c43460739a7 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Tue, 16 Apr 2024 12:43:46 +0200 Subject: [PATCH] Fix ICE endpoint remote port --- client/internal/peer/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/internal/peer/conn.go b/client/internal/peer/conn.go index 9e7ee695932..a0da82b8d21 100644 --- a/client/internal/peer/conn.go +++ b/client/internal/peer/conn.go @@ -466,7 +466,7 @@ func (conn *Conn) configureConnection(remoteConn net.Conn, remoteWgPort int, rem LocalIceCandidateType: pair.Local.Type().String(), RemoteIceCandidateType: pair.Remote.Type().String(), LocalIceCandidateEndpoint: fmt.Sprintf("%s:%d", pair.Local.Address(), pair.Local.Port()), - RemoteIceCandidateEndpoint: fmt.Sprintf("%s:%d", pair.Remote.Address(), pair.Local.Port()), + RemoteIceCandidateEndpoint: fmt.Sprintf("%s:%d", pair.Remote.Address(), pair.Remote.Port()), Direct: !isRelayCandidate(pair.Local), RosenpassEnabled: rosenpassEnabled, Mux: new(sync.RWMutex),