From 0ab0b834eb839c764ef05ac88344efc534660c01 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Thu, 19 Dec 2024 14:01:52 +0100 Subject: [PATCH] Fix --- connprofile/profiler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/connprofile/profiler.go b/connprofile/profiler.go index ca6a95c6e..c8ee5236a 100644 --- a/connprofile/profiler.go +++ b/connprofile/profiler.go @@ -154,6 +154,10 @@ func (p *ConnProfiler) checkHandshakes() { if stat.LastHandshake.IsZero() { continue } + + if stat.LastHandshake.Before(time.Now().Add(-100 * time.Hour)) { + continue + } profile.WireGuardConnected = stat.LastHandshake } p.profilesMu.Unlock()