mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 21:09:28 +00:00
Close the mapping when the dial back is none.
This commit is contained in:
parent
4db7cb6469
commit
bffa085dae
@ -161,6 +161,8 @@ method handleNatStatus*(
|
||||
|
||||
if dialBackAddr.isNone:
|
||||
warn "Got empty dialback address in AutoNat when node is NotReachable"
|
||||
if m.tcpMappingId.isSome and m.udpMappingId.isSome:
|
||||
m.close()
|
||||
elif m.tcpMappingId.isSome and m.udpMappingId.isSome:
|
||||
warn "Not Reachable with active port mapping. The port mapping will be deleted and relay will start."
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user