mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-07 05:13:23 +00:00
wgengine: make the tun.Device required at construction.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
@@ -164,8 +164,7 @@ func startIPNServer(ctx context.Context, logid string) error {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
eng, err := wgengine.NewUserspaceEngine(logf, wgengine.Config{
|
||||
TUN: dev,
|
||||
eng, err := wgengine.NewUserspaceEngine(logf, dev, wgengine.Config{
|
||||
ListenPort: 41641,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user