Chore: move find process name to a single part

This commit is contained in:
Dreamacro
2020-12-17 22:17:27 +08:00
parent 0d33dc3eb9
commit 4b1b494164
10 changed files with 171 additions and 341 deletions

View File

@ -395,10 +395,6 @@ func parseRules(cfg *RawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) {
parsed, parseErr := R.ParseRule(rule[0], payload, target, params)
if parseErr != nil {
if parseErr == R.ErrPlatformNotSupport {
log.Warnln("Rules[%d] [%s] don't support current OS, skip", idx, line)
continue
}
return nil, fmt.Errorf("rules[%d] [%s] error: %s", idx, line, parseErr.Error())
}