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

@ -21,7 +21,7 @@ func TestBasics(t *testing.T) {
sock = fmt.Sprintf(`\\.\pipe\tailscale-test`)
}
l, port, err := Listen(sock, 0)
l, err := Listen(sock)
if err != nil {
t.Fatal(err)
}
@ -54,7 +54,6 @@ func TestBasics(t *testing.T) {
go func() {
s := DefaultConnectionStrategy(sock)
s.port = port
c, err := Connect(s)
if err != nil {
errs <- err