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
2026-06-20 20:16:51 +00:00
parent 96d736ec23
commit 4fa6af0102
+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.