tailcfg: add Debug.RandomizeClientPort

Not yet used.

Updates #2187

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/2227/head
Brad Fitzpatrick 4 years ago committed by Brad Fitzpatrick
parent 38be964c2b
commit bb363095a5

@ -1055,6 +1055,11 @@ type Debug struct {
// The client can (and should) limit the value (such as 5
// minutes).
SleepSeconds float64 `json:",omitempty"`
// RandomizeClientPort is whether magicsock should UDP bind to
// :0 to get a random local port, ignoring any configured
// fixed port.
RandomizeClientPort bool `json:",omitempty"`
}
func (k MachineKey) String() string { return fmt.Sprintf("mkey:%x", k[:]) }

Loading…
Cancel
Save