mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
tstest/natlab: unregister conn4 if registration of conn6 fails.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
d7bc4ec029
commit
d94593e884
@ -456,6 +456,7 @@ func (m *Machine) ListenPacket(network, address string) (net.PacketConn, error)
|
||||
return nil, err
|
||||
}
|
||||
if err := m.registerConn6(c); err != nil {
|
||||
m.unregisterConn4(c)
|
||||
return nil, err
|
||||
}
|
||||
case 4:
|
||||
|
Loading…
Reference in New Issue
Block a user