1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-02-03 23:05:24 -05:00

simplify IPOrDomain construction

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

View File

@@ -63,11 +63,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
dnsServer := dns.NewCacheServer(space, &dns.Config{
NameServers: []*v2net.Endpoint{
{
Address: &v2net.IPOrDomain{
Address: &v2net.IPOrDomain_Domain{
Domain: "localhost",
},
},
Address: v2net.NewIPOrDomain(v2net.LocalHostDomain),
},
},
})