simplify IPOrDomain construction

This commit is contained in:
Darien Raymond committed 2016-12-14 23:04:02 +01:00
1 parent f47c21c422
commit 3b5a791ae8
5 files changed
+27 -35

No files matched your search

+1 -5
View File
@@ -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)