diff options
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/nat/natupnp.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go index 6b3fa3f7a..69099ac04 100644 --- a/p2p/nat/natupnp.go +++ b/p2p/nat/natupnp.go @@ -62,6 +62,7 @@ func (n *upnp) AddMapping(protocol string, extport, intport int, desc string, li } protocol = strings.ToUpper(protocol) lifetimeS := uint32(lifetime / time.Second) + n.DeleteMapping(protocol, extport, intport) return n.client.AddPortMapping("", uint16(extport), protocol, uint16(intport), ip.String(), true, desc, lifetimeS) } |