Update records and spr even if the mapping does not exist when dial back is none

This commit is contained in:
Arnaud 2026-05-25 17:00:14 +04:00
parent 5cc057f04b
commit b7dcf87d3f
No known key found for this signature in database
GPG Key ID: A6C7C781817146FA

View File

@ -161,9 +161,11 @@ 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()
discovery.updateRecordsAndSpr(@[], udpPort = discoveryPort)
discovery.updateRecordsAndSpr(@[], udpPort = discoveryPort)
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."