cmd/tailscaled: log SOCKS5 port when port 0 requested

Part of #2158

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/2267/head
Brad Fitzpatrick 3 years ago
parent 2adbfc920d
commit 82e15d3450

@ -228,6 +228,11 @@ func run() error {
if err != nil {
log.Fatalf("SOCKS5 listener: %v", err)
}
if strings.HasSuffix(args.socksAddr, ":0") {
// Log kernel-selected port number so integration tests
// can find it portably.
log.Printf("SOCKS5 listening on %v", socksListener.Addr())
}
}
e, useNetstack, err := createEngine(logf, linkMon)

Loading…
Cancel
Save