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.
This commit is contained in:
Kristoffer Dalby committed 2026-06-21 04:17:03 +02:00
1 parent 96d736ec23
commit 4fa6af0102
1 file changed
+1 -1
+1 -1
View File
@@ -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.