ipn, wgengine/magicsock: add ipn.Prefs.DisableDERP bool

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-03-04 12:21:40 -08:00
committed by Brad Fitzpatrick
parent bf704a5218
commit eac62ec5ff
7 changed files with 64 additions and 20 deletions

View File

@ -127,6 +127,10 @@ type Engine interface {
// such as mobile data on a phone.
LinkChange(isExpensive bool)
// SetDERPEnabled controls whether DERP is enabled.
// It starts enabled by default.
SetDERPEnabled(bool)
// SetNetInfoCallback sets the function to call when a
// new NetInfo summary is available.
SetNetInfoCallback(NetInfoCallback)