cmd/tailscale/cli: add netcheck dev knob TS_DEBUG_NETCHECK_UDP_BIND
}
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
