From 8808ba64efab77015175a449bb21823b7767d387 Mon Sep 17 00:00:00 2001 From: Eduardo Sorribas Date: Tue, 6 Jan 2026 23:57:56 +0100 Subject: [PATCH] net/portmapper: Stop replacing the internal port with the upnp external port This causes the UPnP mapping to break in the next recreation of the mapping Fixes #18348 Signed-off-by: Eduardo Sorribas --- net/portmapper/upnp.go | 1 - 1 file changed, 1 deletion(-) diff --git a/net/portmapper/upnp.go b/net/portmapper/upnp.go index d65d6e94d..c2a75f16f 100644 --- a/net/portmapper/upnp.go +++ b/net/portmapper/upnp.go @@ -540,7 +540,6 @@ func (c *Client) getUPnPPortMapping( c.mu.Lock() defer c.mu.Unlock() c.mapping = upnp - c.localPort = externalAddrPort.Port() return upnp.external, true }