From b7dcf87d3fa7d4e448b725882b599f5f2f5b81a4 Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 25 May 2026 17:00:14 +0400 Subject: [PATCH] Update records and spr even if the mapping does not exist when dial back is none --- storage/nat.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storage/nat.nim b/storage/nat.nim index 363e8307..6c8bd7b1 100644 --- a/storage/nat.nim +++ b/storage/nat.nim @@ -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."