1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-04-05 23:03:34 +03:00

Update dns.go

This commit is contained in:
patterniha 2025-03-26 11:22:53 +03:30
parent 62cb0922f0
commit 72a8f312f2

View file

@ -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)