diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go index f98d1f043a..0080e3fc4d 100644 --- a/p2p/nat/natupnp.go +++ b/p2p/nat/natupnp.go @@ -83,7 +83,6 @@ func (n *upnp) ExternalIP() (addr net.IP, err error) { } func (n *upnp) AddMapping(protocol string, extport, intport int, desc string, lifetime time.Duration) (uint16, error) { - ip, err := n.internalAddress() if err != nil { return 0, err diff --git a/p2p/server_nat.go b/p2p/server_nat.go index f4e222ef0a..3cf14a8b18 100644 --- a/p2p/server_nat.go +++ b/p2p/server_nat.go @@ -198,7 +198,6 @@ func (srv *Server) portMappingLoop() { } } m.nextTime = srv.clock.Now().Add(portMapRefreshInterval) - } } }