mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-12 00:35:27 -04:00
refactor error messages
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"net"
|
||||
|
||||
"v2ray.com/core/app/log"
|
||||
"v2ray.com/core/common/errors"
|
||||
)
|
||||
|
||||
func (v *Config) GetInternalHosts() map[string]net.IP {
|
||||
@@ -12,7 +11,7 @@ func (v *Config) GetInternalHosts() map[string]net.IP {
|
||||
for domain, ipOrDomain := range v.GetHosts() {
|
||||
address := ipOrDomain.AsAddress()
|
||||
if address.Family().IsDomain() {
|
||||
log.Trace(errors.New("ignoring domain address in static hosts: ", address.Domain()).AtWarning().Path("App", "DNS", "Config"))
|
||||
log.Trace(newError("ignoring domain address in static hosts: ", address.Domain()).AtWarning())
|
||||
continue
|
||||
}
|
||||
hosts[domain] = address.IP()
|
||||
|
||||
Reference in New Issue
Block a user