Close the mapping when the dial back is none.

This commit is contained in:
Arnaud 2026-05-25 10:38:32 +04:00
parent 4db7cb6469
commit bffa085dae
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

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