[FEAT] Add geodata loader mode switch

This commit is contained in:
Clash-Mini
2022-02-05 00:51:06 +08:00
parent 2bf34c766e
commit c28f42d823
5 changed files with 31 additions and 17 deletions

View File

@ -27,10 +27,8 @@ func (ps *Process) Match(metadata *C.Metadata) bool {
if metadata.Process != "" {
return strings.EqualFold(metadata.Process, ps.process)
}
// ignore match in proxy type "tproxy"
//if metadata.Type == C.TPROXY || !C.AutoIptables {
if metadata.Type == C.TPROXY || C.AutoIptables == "Enable" {
if C.AutoIptables == "Enable" {
return false
}