tailcfg: add Debug.RandomizeClientPort

Not yet used.

Updates #2187

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2021-06-22 11:53:41 -07:00 committed by Brad Fitzpatrick
parent 38be964c2b
commit bb363095a5
1 changed files with 5 additions and 0 deletions

View File

@ -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[:]) }