mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-30 15:36:44 +00:00
simplify IPOrDomain construction
This commit is contained in:
5 files changed
+27
-35
No files matched your search
@@ -70,11 +70,7 @@ func TestIPResolution(t *testing.T) {
|
||||
space.BindApp(router.APP_ID, r)
|
||||
dnsServer := dns.NewCacheServer(space, &dns.Config{
|
||||
Hosts: map[string]*v2net.IPOrDomain{
|
||||
"v2ray.com": {
|
||||
Address: &v2net.IPOrDomain_Ip{
|
||||
Ip: []byte{127, 0, 0, 1},
|
||||
},
|
||||
},
|
||||
"v2ray.com": v2net.NewIPOrDomain(v2net.LocalHostIP),
|
||||
},
|
||||
})
|
||||
space.BindApp(dns.APP_ID, dnsServer)
|
||||
|
||||
Reference in new issue
Block a user