update confip ip to expectIPs

pull/2037/head
weaving118 5 years ago
parent 101f5d32fa
commit e916a3b29d
No known key found for this signature in database
GPG Key ID: D1D2B8A0B60A4CBE

@ -38,7 +38,7 @@ type MultiGeoIPMatcher struct {
matchers []*router.GeoIPMatcher matchers []*router.GeoIPMatcher
} }
// Match for // Match check ip match
func (c *MultiGeoIPMatcher) Match(ip net.IP) bool { func (c *MultiGeoIPMatcher) Match(ip net.IP) bool {
for _, matcher := range c.matchers { for _, matcher := range c.matchers {
if matcher.Match(ip) { if matcher.Match(ip) {
@ -48,7 +48,7 @@ func (c *MultiGeoIPMatcher) Match(ip net.IP) bool {
return false return false
} }
// HasMatcher f // HasMatcher check has matcher
func (c *MultiGeoIPMatcher) HasMatcher() bool { func (c *MultiGeoIPMatcher) HasMatcher() bool {
if len(c.matchers) > 0 { if len(c.matchers) > 0 {
return true return true

Loading…
Cancel
Save