We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df0b24 commit d54e353Copy full SHA for d54e353
p2p/nat/natupnp.go
@@ -62,6 +62,7 @@ func (n *upnp) AddMapping(protocol string, extport, intport int, desc string, li
62
}
63
protocol = strings.ToUpper(protocol)
64
lifetimeS := uint32(lifetime / time.Second)
65
+ n.DeleteMapping(protocol, extport, intport)
66
return n.client.AddPortMapping("", uint16(extport), protocol, uint16(intport), ip.String(), true, desc, lifetimeS)
67
68
0 commit comments