Explorar o código

fix dns client

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
c3170dfc8e
Modificáronse 3 ficheiros con 3 adicións e 4 borrados
  1. 1 1
      app/dns/server.go
  2. 1 1
      dns.go
  3. 1 2
      features/dns/client.go

+ 1 - 1
app/dns/server.go

@@ -7,11 +7,11 @@ import (
 	"sync"
 	"time"
 
-	"github.com/miekg/dns"
 	"v2ray.com/core"
 	"v2ray.com/core/common"
 	"v2ray.com/core/common/net"
 	"v2ray.com/core/common/strmatcher"
+	"v2ray.com/core/features/dns"
 )
 
 type Server struct {

+ 1 - 1
dns.go

@@ -1,10 +1,10 @@
 package core
 
 import (
-	"net"
 	"sync"
 
 	"v2ray.com/core/common"
+	"v2ray.com/core/common/net"
 	"v2ray.com/core/features/dns"
 )
 

+ 1 - 2
features/dns/client.go

@@ -1,8 +1,7 @@
 package dns
 
 import (
-	"net"
-
+	"v2ray.com/core/common/net"
 	"v2ray.com/core/features"
 )