mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-03 14:55:47 +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
|
return nil, err
|
||||||
}
|
}
|
||||||
if err := m.registerConn6(c); err != nil {
|
if err := m.registerConn6(c); err != nil {
|
||||||
|
m.unregisterConn4(c)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
case 4:
|
case 4:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user