mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +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 {
|
if port < 0 || port > 1<<16-1 {
|
||||||
return zero, false
|
return zero, false
|
||||||
}
|
}
|
||||||
|
if port == 0 {
|
||||||
|
port = 3478
|
||||||
|
}
|
||||||
if n.STUNTestIP != "" {
|
if n.STUNTestIP != "" {
|
||||||
ip, err := netip.ParseAddr(n.STUNTestIP)
|
ip, err := netip.ParseAddr(n.STUNTestIP)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user