cmd/tailscale/cli: add netcheck dev knob TS_DEBUG_NETCHECK_UDP_BIND

This commit is contained in:
Brad Fitzpatrick 2021-02-19 07:48:35 -08:00
parent 7ad3af2141
commit 826f64e863

View File

@ -43,7 +43,9 @@ var netcheckArgs struct {
}
func runNetcheck(ctx context.Context, args []string) error {
c := &netcheck.Client{}
c := &netcheck.Client{
UDPBindAddr: os.Getenv("TS_DEBUG_NETCHECK_UDP_BIND"),
}
if netcheckArgs.verbose {
c.Logf = logger.WithPrefix(log.Printf, "netcheck: ")
c.Verbose = true