From bffa085dae6073eccfdd1e197a84e02d2c7dcdcd Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 25 May 2026 10:38:32 +0400 Subject: [PATCH] Close the mapping when the dial back is none. --- storage/nat.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storage/nat.nim b/storage/nat.nim index 07c56b2d..3ddccd27 100644 --- a/storage/nat.nim +++ b/storage/nat.nim @@ -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."