mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-25 19:45:38 -05:00
support querying either IPv4 or IPv6 dns
This commit is contained in:
3
v2ray.go
3
v2ray.go
@@ -9,6 +9,7 @@ import (
|
||||
"v2ray.com/core/common/serial"
|
||||
"v2ray.com/core/features"
|
||||
"v2ray.com/core/features/dns"
|
||||
"v2ray.com/core/features/dns/localdns"
|
||||
"v2ray.com/core/features/inbound"
|
||||
"v2ray.com/core/features/outbound"
|
||||
"v2ray.com/core/features/policy"
|
||||
@@ -183,7 +184,7 @@ func New(config *Config) (*Instance, error) {
|
||||
Type interface{}
|
||||
Instance features.Feature
|
||||
}{
|
||||
{dns.ClientType(), dns.LocalClient{}},
|
||||
{dns.ClientType(), localdns.New()},
|
||||
{policy.ManagerType(), policy.DefaultManager{}},
|
||||
{routing.RouterType(), routing.DefaultRouter{}},
|
||||
{stats.ManagerType(), stats.NoopManager{}},
|
||||
|
||||
Reference in New Issue
Block a user