1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-23 12:00:34 +08:00

add some logs

This commit is contained in:
fumiama
2021-12-30 16:31:00 +08:00
parent cc6369abd3
commit 153c36aac8

View File

@@ -84,7 +84,7 @@ func (r *Router) SetItem(ip *net.IPNet, l *Link) {
copy(r.list[i+1:], r.list[i:len(r.list)-1])
r.list[i] = ip
r.table[ip.String()] = l
logrus.Infoln("[router] add item: net =", ip, "link =", l)
logrus.Infoln("[router] add route in link", l.pubk[:24], "to", ip, "-->", l.peerip)
break
}
}