mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-21 14:53:08 +01:00
fix TTL
This commit is contained in:
parent
7775441e24
commit
2897388568
@ -934,7 +934,7 @@ func (device *Device) RoutinePostPeerInfo(startchan <-chan struct{}) {
|
|||||||
Src_nodeID: id,
|
Src_nodeID: id,
|
||||||
Dst_nodeID: device.ID,
|
Dst_nodeID: device.ID,
|
||||||
Timediff: peer.SingleWayLatency.GetVal(),
|
Timediff: peer.SingleWayLatency.GetVal(),
|
||||||
TimeToAlive: time.Since(*peer.LastPacketReceivedAdd1Sec.Load().(*time.Time)).Seconds() + device.EdgeConfig.DynamicRoute.PeerAliveTimeout,
|
TimeToAlive: -time.Since(*peer.LastPacketReceivedAdd1Sec.Load().(*time.Time)).Seconds() + device.EdgeConfig.DynamicRoute.PeerAliveTimeout,
|
||||||
}
|
}
|
||||||
pongs = append(pongs, pong)
|
pongs = append(pongs, pong)
|
||||||
if device.LogLevel.LogControl {
|
if device.LogLevel.LogControl {
|
||||||
|
Loading…
Reference in New Issue
Block a user