mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 21:15:46 -05:00
refactor
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
"v2ray.com/core/app/log"
|
||||
)
|
||||
|
||||
func (v *Config) GetInternalHosts() map[string]net.IP {
|
||||
func (c *Config) GetInternalHosts() map[string]net.IP {
|
||||
hosts := make(map[string]net.IP)
|
||||
for domain, ipOrDomain := range v.GetHosts() {
|
||||
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())
|
||||
|
||||
Reference in New Issue
Block a user