1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00:00

update reference

This commit is contained in:
Darien Raymond 2017-02-05 09:15:52 +01:00
parent a13a8cffd8
commit 6144b2ff55
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -8,7 +8,7 @@ import (
"v2ray.com/core/app/dns"
"v2ray.com/core/app/log"
"v2ray.com/core/app/proxyman"
v2net "v2ray.com/core/common/net"
"v2ray.com/core/common/net"
)
// Point shell of V2Ray.
@ -80,8 +80,8 @@ func NewPoint(config *Config) (*Point, error) {
dnsServer := dns.FromSpace(space)
if dnsServer == nil {
dnsConfig := &dns.Config{
NameServers: []*v2net.Endpoint{{
Address: v2net.NewIPOrDomain(v2net.LocalHostDomain),
NameServers: []*net.Endpoint{{
Address: net.NewIPOrDomain(net.LocalHostDomain),
}},
}
d, err := app.CreateAppFromConfig(ctx, dnsConfig)