1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 21:15:46 -05:00
This commit is contained in:
Darien Raymond
2017-04-23 19:16:56 +02:00
parent cea6e28634
commit 59a1e2d736
10 changed files with 104 additions and 100 deletions

View File

@@ -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())