mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
net/netcheck: preserve STUN port defaulting to 3478 (#14289)
Updates tailscale/tailscale#14287 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
@@ -1570,6 +1570,9 @@ func (c *Client) nodeAddrPort(ctx context.Context, n *tailcfg.DERPNode, port int
|
||||
if port < 0 || port > 1<<16-1 {
|
||||
return zero, false
|
||||
}
|
||||
if port == 0 {
|
||||
port = 3478
|
||||
}
|
||||
if n.STUNTestIP != "" {
|
||||
ip, err := netip.ParseAddr(n.STUNTestIP)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user