mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-16 15:59:58 -04:00
move common/log to app/log
This commit is contained in:
@@ -3,7 +3,7 @@ package dns
|
||||
import (
|
||||
"net"
|
||||
|
||||
"v2ray.com/core/common/log"
|
||||
"v2ray.com/core/app/log"
|
||||
)
|
||||
|
||||
func (v *Config) GetInternalHosts() map[string]net.IP {
|
||||
|
||||
@@ -9,6 +9,8 @@ import (
|
||||
// A Server is a DNS server for responding DNS queries.
|
||||
type Server interface {
|
||||
Get(domain string) []net.IP
|
||||
Start() error
|
||||
Close()
|
||||
}
|
||||
|
||||
func FromSpace(space app.Space) Server {
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"v2ray.com/core/app/dispatcher"
|
||||
"v2ray.com/core/common/buf"
|
||||
"v2ray.com/core/common/dice"
|
||||
"v2ray.com/core/common/log"
|
||||
"v2ray.com/core/app/log"
|
||||
v2net "v2ray.com/core/common/net"
|
||||
"v2ray.com/core/transport/internet/udp"
|
||||
)
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"v2ray.com/core/app"
|
||||
"v2ray.com/core/app/dispatcher"
|
||||
"v2ray.com/core/app/dns"
|
||||
"v2ray.com/core/app/log"
|
||||
"v2ray.com/core/common"
|
||||
"v2ray.com/core/common/errors"
|
||||
"v2ray.com/core/common/log"
|
||||
v2net "v2ray.com/core/common/net"
|
||||
)
|
||||
|
||||
@@ -73,6 +73,12 @@ func (CacheServer) Interface() interface{} {
|
||||
return (*dns.Server)(nil)
|
||||
}
|
||||
|
||||
func (CacheServer) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (CacheServer) Close() {}
|
||||
|
||||
// Private: Visible for testing.
|
||||
func (v *CacheServer) GetCached(domain string) []net.IP {
|
||||
v.RLock()
|
||||
|
||||
Reference in New Issue
Block a user