From 72a8f312f2b33108ab0c686a998a57f85c25550f Mon Sep 17 00:00:00 2001 From: patterniha Date: Wed, 26 Mar 2025 11:22:53 +0330 Subject: [PATCH] Update dns.go --- infra/conf/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/conf/dns.go b/infra/conf/dns.go index a6070363..607cbf07 100644 --- a/infra/conf/dns.go +++ b/infra/conf/dns.go @@ -105,7 +105,7 @@ func (c *NameServerConfig) Build() (*dns.NameServer, error) { } var expectedIPs = c.ExpectedIPs - if expectedIPs == nil { + if len(expectedIPs) == 0 { expectedIPs = c.ExpectIPs } geoipList, err := ToCidrList(expectedIPs)