mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-09-12 11:52:33 +00:00
23 lines
431 B
Go
23 lines
431 B
Go
package rules
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var (
|
|
errPayload = errors.New("payload error")
|
|
errParams = errors.New("params 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
|
|
}
|