1
0
mirror of https://github.com/fumiama/WireGold.git synced 2026-06-06 16:30:27 +08:00

refractor

This commit is contained in:
fumiama
2021-12-30 16:22:22 +08:00
parent 7122614c1f
commit 711133d4ec

View File

@@ -86,7 +86,7 @@ func (l *Link) Write(p *head.Packet, istransfer bool) (n int, err error) {
}
logrus.Debugln("[link] write", len(d), "bytes data")
if err == nil {
peerlink := l.me.router.NextHop(l.peerip.String() + "/32")
peerlink := l.me.router.NextHop(l.peerip.String())
if peerlink != nil {
peerep := peerlink.endpoint
if peerep == nil {