From e916a3b29da85fd2acc3791fcb5b9a45433557ba Mon Sep 17 00:00:00 2001 From: weaving118 Date: Wed, 20 Nov 2019 17:20:33 +0800 Subject: [PATCH] update confip ip to expectIPs --- app/dns/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/dns/server.go b/app/dns/server.go index 39813c6c5..66536e23d 100644 --- a/app/dns/server.go +++ b/app/dns/server.go @@ -38,7 +38,7 @@ type MultiGeoIPMatcher struct { matchers []*router.GeoIPMatcher } -// Match for +// Match check ip match func (c *MultiGeoIPMatcher) Match(ip net.IP) bool { for _, matcher := range c.matchers { if matcher.Match(ip) { @@ -48,7 +48,7 @@ func (c *MultiGeoIPMatcher) Match(ip net.IP) bool { return false } -// HasMatcher f +// HasMatcher check has matcher func (c *MultiGeoIPMatcher) HasMatcher() bool { if len(c.matchers) > 0 { return true