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:
6
v2ray.go
6
v2ray.go
@@ -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),
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user