mirror of
https://github.com/juanfont/headscale.git
synced 2026-07-18 00:45:06 +00: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:
parent
96d736ec23
commit
4fa6af0102
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue