wgengine: don't pass nil router.Config objects.

These are hard for swift to decode in the iOS app.

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
This commit is contained in:
Avery Pennarun
2020-05-31 02:36:57 -04:00
parent 5114df415e
commit f0b6ba78e8
3 changed files with 11 additions and 3 deletions

View File

@@ -11,6 +11,7 @@ import (
)
type darwinRouter struct {
logf logger.Logf
tunname string
}
@@ -19,7 +20,10 @@ func newUserspaceRouter(logf logger.Logf, _ *device.Device, tundev tun.Device) (
if err != nil {
return nil, err
}
return &darwinRouter{tunname: tunname}, nil
return &darwinRouter{
logf: logf,
tunname: tunname,
}, nil
}
func (r *darwinRouter) Up() error {