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:
parent
62cb0922f0
commit
72a8f312f2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue