Skip to content

Commit

Permalink
update confip ip to expectIPs
Browse files Browse the repository at this point in the history
  • Loading branch information
weaving118 committed Nov 20, 2019
1 parent 101f5d3 commit e916a3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/dns/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit e916a3b

Please sign in to comment.