Fix: NoResolveIP should return current value (#390)

This commit is contained in:
Fndroid
2019-11-04 10:42:39 +08:00
committed by Dreamacro
parent 1948ea11ef
commit e103040158
7 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ func (d *Domain) Payload() string {
}
func (d *Domain) NoResolveIP() bool {
return false
return true
}
func NewDomain(domain string, adapter string) *Domain {

View File

@ -32,7 +32,7 @@ func (dk *DomainKeyword) Payload() string {
}
func (dk *DomainKeyword) NoResolveIP() bool {
return false
return true
}
func NewDomainKeyword(keyword string, adapter string) *DomainKeyword {

View File

@ -32,7 +32,7 @@ func (ds *DomainSuffix) Payload() string {
}
func (ds *DomainSuffix) NoResolveIP() bool {
return false
return true
}
func NewDomainSuffix(suffix string, adapter string) *DomainSuffix {

View File

@ -25,7 +25,7 @@ func (f *Match) Payload() string {
}
func (f *Match) NoResolveIP() bool {
return false
return true
}
func NewMatch(adapter string) *Match {

View File

@ -16,7 +16,7 @@ func WithIPCIDRSourceIP(b bool) IPCIDROption {
func WithIPCIDRNoResolve(noResolve bool) IPCIDROption {
return func(i *IPCIDR) {
i.noResolveIP = !noResolve
i.noResolveIP = noResolve
}
}

View File

@ -35,7 +35,7 @@ func (p *Port) Payload() string {
}
func (p *Port) NoResolveIP() bool {
return false
return true
}
func NewPort(port string, adapter string, isSource bool) (*Port, error) {