mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-08 00:50:20 +09:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user