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

@@ -604,3 +604,7 @@ func (e *userspaceEngine) LinkChange(isExpensive bool) {
func (e *userspaceEngine) SetNetInfoCallback(cb NetInfoCallback) {
e.magicConn.SetNetInfoCallback(cb)
}
func (e *userspaceEngine) SetDERPEnabled(v bool) {
e.magicConn.SetDERPEnabled(v)
}