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

@ -50,8 +50,8 @@ func (i *IPCIDR) Payload() string {
return i.ipnet.String()
}
func (i *IPCIDR) NoResolveIP() bool {
return i.noResolveIP
func (i *IPCIDR) ShouldResolveIP() bool {
return !i.noResolveIP
}
func NewIPCIDR(s string, adapter string, opts ...IPCIDROption) (*IPCIDR, error) {