mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-05 14:57:49 +00:00
wgengine/router: do not call ifconfig up if SetRoutesFunc is set
The NetworkExtension brings up the interface itself and does not have access to `ifconfig`, which the underlying BSD userspace router attempts to use when Up is called. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
23e74a0f7a
commit
9258d64261
@ -45,3 +45,10 @@ func (r *darwinRouter) Set(cfg *Config) error {
|
||||
|
||||
return r.Router.Set(cfg)
|
||||
}
|
||||
|
||||
func (r *darwinRouter) Up() error {
|
||||
if SetRoutesFunc != nil {
|
||||
return nil // bringing up the tunnel is handled externally
|
||||
}
|
||||
return r.Router.Up()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user