mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-26 21:24:14 +00:00
fix bug
This commit is contained in:
parent
74fa9b972f
commit
318c61cce9
2 changed files with 7 additions and 1 deletions
|
@ -87,6 +87,9 @@ func (h *StaticHosts) lookup(domain string, option dns.IPOption, maxDepth int) (
|
|||
return addrs, nil
|
||||
case len(addrs) == 1:
|
||||
if err, ok := addrs[0].(dns.RCodeError); ok {
|
||||
if uint16(err) == 0 {
|
||||
return nil, dns.ErrEmptyResponse
|
||||
}
|
||||
return nil, err
|
||||
}
|
||||
if addrs[0].Family().IsDomain() { // Try to unwrap domain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue