make acl_policy_path fatal if policy.path is not set (#2041)

This commit is contained in:
Kristoffer Dalby 2024-08-19 13:03:01 +02:00 committed by GitHub
parent f99497340b
commit 84cb5d0aed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 42 additions and 5 deletions

View file

@ -303,7 +303,7 @@ func LoadConfig(path string, isFile bool) error {
// https://github.com/spf13/viper/issues/560
// Alias the old ACL Policy path with the new configuration option.
depr.warnWithAlias("policy.path", "acl_policy_path")
depr.fatalIfNewKeyIsNotUsed("policy.path", "acl_policy_path")
// Move dns_config -> dns
depr.warn("dns_config.override_local_dns")