From 77caa94400f7bfe3fdbae34264be22c629894a16 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Tue, 25 Aug 2026 07:20:12 +0000 Subject: [PATCH] policy/v2: use value receiver for SSHCheckPeriod.Validate recvcheck ignores UnmarshalJSON, so the pointer receiver here was the odd one out against value-receiver MarshalJSON. Validate only reads. --- 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 50a89f8c1..551f77425 100644 --- a/hscontrol/policy/v2/types.go +++ b/hscontrol/policy/v2/types.go @@ -2850,7 +2850,7 @@ func (p SSHCheckPeriod) MarshalJSON() ([]byte, error) { // Validate rejects negative durations and anything above the inclusive // 168h max. -func (p *SSHCheckPeriod) Validate() error { +func (p SSHCheckPeriod) Validate() error { if p.Always { return nil }