net/portmapper: Stop replacing the internal port with the upnp external port (#18349)
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>
This commit is contained in:
@@ -574,7 +574,7 @@ func (c *Client) getUPnPPortMapping(
|
|||||||
c.mu.Lock()
|
c.mu.Lock()
|
||||||
defer c.mu.Unlock()
|
defer c.mu.Unlock()
|
||||||
c.mapping = upnp
|
c.mapping = upnp
|
||||||
c.localPort = externalAddrPort.Port()
|
c.localPort = internal.Port()
|
||||||
return upnp.external, true
|
return upnp.external, true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user