mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
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:
parent
a601a760ba
commit
b7e0ff598a
@ -188,7 +188,6 @@ func NewUserspaceEngine(logf logger.Logf, tunname string, listenPort uint16) (En
|
|||||||
|
|
||||||
e, err := NewUserspaceEngineAdvanced(conf)
|
e, err := NewUserspaceEngineAdvanced(conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tun.Close()
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return e, err
|
return e, err
|
||||||
|
Loading…
Reference in New Issue
Block a user