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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user