tailcfg, controlclient, magicsock: add control feature flag to enable DRPO

Updates #150
This commit is contained in:
Brad Fitzpatrick
2020-08-17 12:56:17 -07:00
parent 771e9541c7
commit f6dc47efe4
3 changed files with 42 additions and 4 deletions

View File

@@ -563,6 +563,13 @@ type Debug struct {
// always do its background STUN queries (see magicsock's
// periodicReSTUN), regardless of inactivity.
ForceBackgroundSTUN bool `json:",omitempty"`
// DERPRoute controls whether the DERP reverse path
// optimization (see Issue 150) should be enabled or
// disabled. The environment variable in magicsock is the
// highest priority (if set), then this (if set), then the
// binary default value.
DERPRoute opt.Bool `json:",omitempty"`
}
func (k MachineKey) String() string { return fmt.Sprintf("mkey:%x", k[:]) }