From 4fa6af0102d27fd2106575ea7c75484be0cbb239 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Sat, 20 Jun 2026 20:16:51 +0000 Subject: [PATCH] policy/v2: write the SSH check period as time arithmetic Express the maximum SSH check period as 7 * 24 * time.Hour instead of a bare nanosecond constant, matching how the rest of the code spells out magic durations. --- hscontrol/policy/v2/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hscontrol/policy/v2/types.go b/hscontrol/policy/v2/types.go index a8e1bd85..4e248323 100644 --- a/hscontrol/policy/v2/types.go +++ b/hscontrol/policy/v2/types.go @@ -63,7 +63,7 @@ var ( // SaaS imposes no minimum (0s is accepted) so headscale matches. const ( SSHCheckPeriodDefault = 12 * time.Hour - SSHCheckPeriodMax = 168 * time.Hour + SSHCheckPeriodMax = 7 * 24 * time.Hour ) // ACL validation errors.