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 <eduardo@sorribas.org>
pull/18349/head
Eduardo Sorribas 5 days ago committed by Eduardo Sorribas
parent a662c541ab
commit 8808ba64ef

@ -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
}

Loading…
Cancel
Save