safesocket: add WindowsLocalPort const

Remove all the 41112 references.

Change-Id: I2d7ed330d457e3bb91b7e6416cfb2667611e50c4
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2021-11-05 14:05:13 -07:00
parent 1ec99e99f4
commit 2b082959db
6 changed files with 10 additions and 5 deletions

View File

@ -56,7 +56,7 @@ func defaultDialer(ctx context.Context, network, addr string) (net.Conn, error)
return d.DialContext(ctx, "tcp", "localhost:"+strconv.Itoa(port))
}
}
return safesocket.Connect(TailscaledSocket, 41112)
return safesocket.Connect(TailscaledSocket, safesocket.WindowsLocalPort)
}
var (