swarm/network: Add logging on submatch fallthrough case

This commit is contained in:
lash 2019-03-01 12:51:57 +01:00
parent b87a9d9a7f
commit 407f429723

View file

@ -236,6 +236,8 @@ func sanitizeEnodeRemote(paddr net.Addr, baddr *BzzAddr) {
remoteStr := fmt.Sprintf("@%s:%s", ip, string(hsSubmatch[2]))
log.Debug("rewrote peer uaddr host/port", "addr", baddr)
baddr.UAddr = regexpEnodeIP.ReplaceAll(baddr.UAddr, []byte(remoteStr))
} else {
log.Trace("passthrough handshake addr rewrite", "submatch", hsSubmatch[1])
}
}