Chore: rename NoResolveIP to ShouldResolveIP

This commit is contained in:
Dreamacro
2020-07-27 11:57:55 +08:00
parent 33a6579a3a
commit 78c3034158
11 changed files with 20 additions and 20 deletions

View File

@ -32,8 +32,8 @@ func (g *GEOIP) Payload() string {
return g.country
}
func (g *GEOIP) NoResolveIP() bool {
return g.noResolveIP
func (g *GEOIP) ShouldResolveIP() bool {
return !g.noResolveIP
}
func NewGEOIP(country string, adapter string, noResolveIP bool) *GEOIP {