fix sighup issue with empty acl (#2296)

Fixes #2291

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2024-12-16 07:48:19 +01:00
committed by GitHub
parent e00b9d9a91
commit ec8729b772
3 changed files with 16 additions and 0 deletions

View File

@@ -211,6 +211,10 @@ type PolicyConfig struct {
Mode PolicyMode
}
func (p *PolicyConfig) IsEmpty() bool {
return p.Mode == PolicyModeFile && p.Path == ""
}
type LogConfig struct {
Format string
Level zerolog.Level