mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-02 18:14:01 +00:00
22 lines
286 B
Go
22 lines
286 B
Go
|
package rules
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
errPayload = errors.New("payload error")
|
||
|
errParams = errors.New("params error")
|
||
|
|
||
|
noResolve = "no-resolve"
|
||
|
)
|
||
|
|
||
|
func HasNoResolve(params []string) bool {
|
||
|
for _, p := range params {
|
||
|
if p == noResolve {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
return false
|
||
|
}
|