0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-19 14:48:03 +03:00

fix: fix clientIP config

This commit is contained in:
秋のかえで
2021-04-02 16:57:31 +08:00
parent 364086c974
commit 90c81e8459
2 changed files with 13 additions and 0 deletions

View File

@ -67,6 +67,7 @@ func TestDNSConfigParsing(t *testing.T) {
Input: `{
"servers": [{
"address": "8.8.8.8",
"clientIp": "10.0.0.1",
"port": 5353,
"domains": ["domain:example.com"]
}],
@ -94,6 +95,7 @@ func TestDNSConfigParsing(t *testing.T) {
Network: net.Network_UDP,
Port: 5353,
},
ClientIp: []byte{10, 0, 0, 1},
PrioritizedDomain: []*dns.NameServer_PriorityDomain{
{
Type: dns.DomainMatchingType_Subdomain,