Skip to content

Commit ca79cd0

Browse files
committed
p2p/nat: fix log message
Signed-off-by: Csaba Kiraly <[email protected]>
1 parent 343277d commit ca79cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/server_nat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (srv *Server) portMappingLoop() {
164164
// It was mapped!
165165
m.extPort = int(p)
166166
m.nextTime = srv.clock.Now().Add(portMapRefreshInterval)
167-
if external != m.extPort {
167+
if m.port != m.extPort {
168168
log = newLogger(m.protocol, m.extPort, m.port)
169169
log.Info("NAT mapped alternative port")
170170
} else {

0 commit comments

Comments
 (0)