clash/rules/base.go

23 lines
379 B
Go
Raw Normal View History

package rules
import (
"errors"
)
var (
2020-07-19 05:17:05 +00:00
errPayload = errors.New("payload error")
ErrPlatformNotSupport = errors.New("not support on this platform")
ErrInvalidNetwork = errors.New("invalid network")
noResolve = "no-resolve"
)
func HasNoResolve(params []string) bool {
for _, p := range params {
if p == noResolve {
return true
}
}
return false
}