mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-22 04:09:08 -04:00
merge log into common log
This commit is contained in:
@@ -2,8 +2,6 @@ package dns
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
"v2ray.com/core/app/log"
|
||||
)
|
||||
|
||||
func (c *Config) GetInternalHosts() map[string]net.IP {
|
||||
@@ -11,7 +9,7 @@ func (c *Config) GetInternalHosts() map[string]net.IP {
|
||||
for domain, ipOrDomain := range c.GetHosts() {
|
||||
address := ipOrDomain.AsAddress()
|
||||
if address.Family().IsDomain() {
|
||||
log.Trace(newError("ignoring domain address in static hosts: ", address.Domain()).AtWarning())
|
||||
newError("ignoring domain address in static hosts: ", address.Domain()).AtWarning().WriteToLog()
|
||||
continue
|
||||
}
|
||||
hosts[domain] = address.IP()
|
||||
|
||||
Reference in New Issue
Block a user