1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-19 20:15:59 +08:00

Fix: Remove EnableProcess from config.go and enable-process from config.yaml.

Fix: FindProcess is now enabled by default when the rule set contains process-name rules.
This commit is contained in:
Larvan2
2023-01-20 16:29:08 +08:00
parent 5bbf73e3b5
commit 8a7027e8d6
10 changed files with 36 additions and 17 deletions

View File

@ -9,14 +9,15 @@ import (
type RuleSet struct {
*common.Base
ruleProviderName string
adapter string
ruleProvider P.RuleProvider
noResolveIP bool
ruleProviderName string
adapter string
ruleProvider P.RuleProvider
noResolveIP bool
shouldFindProcess bool
}
func (rs *RuleSet) ShouldFindProcess() bool {
return false
return !rs.shouldFindProcess && rs.getProviders().ShouldFindProcess()
}
func (rs *RuleSet) RuleType() C.RuleType {