mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-19 14:48:03 +03:00
feat: add queryStrategy option for DNS
This commit is contained in:
@ -77,7 +77,9 @@ func TestDNSConfigParsing(t *testing.T) {
|
||||
"keyword:google": "8.8.8.8",
|
||||
"regexp:.*\\.com": "8.8.4.4"
|
||||
},
|
||||
"clientIp": "10.0.0.1"
|
||||
"clientIp": "10.0.0.1",
|
||||
"queryStrategy": "UseIPv4",
|
||||
"disableCache": true
|
||||
}`,
|
||||
Parser: parserCreator(),
|
||||
Output: &dns.Config{
|
||||
@ -133,7 +135,9 @@ func TestDNSConfigParsing(t *testing.T) {
|
||||
Ip: [][]byte{{8, 8, 4, 4}},
|
||||
},
|
||||
},
|
||||
ClientIp: []byte{10, 0, 0, 1},
|
||||
ClientIp: []byte{10, 0, 0, 1},
|
||||
QueryStrategy: dns.QueryStrategy_USE_IP4,
|
||||
DisableCache: true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user