hotfix(env): read some settings with case sensitivity
This commit is contained in:
2
internal/configuration/sources/env/dns.go
vendored
2
internal/configuration/sources/env/dns.go
vendored
@@ -27,7 +27,7 @@ func (s *Source) readDNS() (dns settings.DNS, err error) {
|
||||
}
|
||||
|
||||
func (s *Source) readDNSServerAddress() (address netip.Addr, err error) {
|
||||
key, value := s.getEnvWithRetro("DNS_ADDRESS", "DNS_PLAINTEXT_ADDRESS")
|
||||
key, value := s.getEnvWithRetro("DNS_ADDRESS", []string{"DNS_PLAINTEXT_ADDRESS"})
|
||||
if value == "" {
|
||||
return address, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user