diff --git a/cmd/tailscaled/tailscaled.go b/cmd/tailscaled/tailscaled.go index 63296204d..0c5223d14 100644 --- a/cmd/tailscaled/tailscaled.go +++ b/cmd/tailscaled/tailscaled.go @@ -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)