Bug fix - peer Up calculation #2

This commit is contained in:
jdl committed 2026-06-15 06:19:20 +02:00
1 parent d02f47cce6
commit b4320c9330
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ func (p *Peer) LastHandshakeTime() time.Time {
}
func (p *Peer) Up() bool {
return time.Since(p.LastPing) > 3*PingInterval
return time.Since(p.LastPing) < 3*PingInterval
}
func (p *Peer) CanRelay() bool {