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>
This commit is contained in:
David Anderson 2020-09-23 19:51:43 +00:00
parent a601a760ba
commit b7e0ff598a
1 changed files with 0 additions and 1 deletions

View File

@ -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