safesocket: remove the now unused WindowsLocalPort

Also drop the port param from safesocket.Listen. #cleanup

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2023-01-30 09:34:51 -08:00
committed by Maisem Ali
parent fede3cd704
commit 4441609d8f
8 changed files with 18 additions and 33 deletions

View File

@@ -11,9 +11,8 @@ import (
const memName = "Tailscale-IPN"
func listen(path string, port uint16) (_ net.Listener, gotPort uint16, _ error) {
ln, err := memconn.Listen("memu", memName)
return ln, 1, err
func listen(path string) (net.Listener, error) {
return memconn.Listen("memu", memName)
}
func connect(_ *ConnectionStrategy) (net.Conn, error) {