wgengine: don't close tundev in NewUserspaceEngine.

newUserspaceEngineAdvanced closes the tun device on error already.

Fixes #783.

Signed-off-by: David Anderson <danderson@tailscale.com>
pull/773/head
David Anderson 4 years ago
parent a601a760ba
commit b7e0ff598a

@ -188,7 +188,6 @@ func NewUserspaceEngine(logf logger.Logf, tunname string, listenPort uint16) (En
e, err := NewUserspaceEngineAdvanced(conf)
if err != nil {
tun.Close()
return nil, err
}
return e, err

Loading…
Cancel
Save