chore: 调整uid系统判断位置
This commit is contained in:
@ -11,7 +11,6 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
@ -106,11 +105,7 @@ func parseRule(tp, payload string, params []string) (C.Rule, error) {
|
||||
noResolve := RC.HasNoResolve(params)
|
||||
parsed, parseErr = provider.NewRuleSet(payload, "", noResolve)
|
||||
case "UID":
|
||||
if runtime.GOOS == "linux" || runtime.GOOS == "android" {
|
||||
parsed, parseErr = RC.NewUid(payload, "")
|
||||
} else {
|
||||
parseErr = fmt.Errorf("uid rule not support this platform")
|
||||
}
|
||||
parsed, parseErr = RC.NewUid(payload, "")
|
||||
case "IN-TYPE":
|
||||
parsed, parseErr = RC.NewInType(payload, "")
|
||||
case "NOT":
|
||||
|
Reference in New Issue
Block a user