mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-27 06:10:26 +08:00
add istransfer option in link.Write
This commit is contained in:
@@ -15,7 +15,7 @@ func (l *Link) keepAlive() {
|
||||
go func() {
|
||||
t := time.NewTicker(time.Second * time.Duration(l.keepalive))
|
||||
for range t.C {
|
||||
_, _ = l.Write(head.NewPacket(head.ProtoHello, 0, l.peerip, 0, nil))
|
||||
_, _ = l.Write(head.NewPacket(head.ProtoHello, 0, l.peerip, 0, nil), false)
|
||||
logrus.Infoln("[link.nat] send keep alive packet")
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user