diff --git a/peer/remote.go b/peer/remote.go index e5625fc..3668255 100644 --- a/peer/remote.go +++ b/peer/remote.go @@ -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 {