Explorar o código

update confip ip to expectIPs

weaving118 %!s(int64=6) %!d(string=hai) anos
pai
achega
e916a3b29d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/dns/server.go

+ 2 - 2
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