[Feat] add Pass type for support temporary skip rule set
This commit is contained in:
MetaCubeX
2022-03-27 23:44:51 +08:00
11 changed files with 67 additions and 21 deletions

View File

@ -368,6 +368,10 @@ func match(metadata *C.Metadata) (C.Proxy, C.Rule, error) {
continue
}
if adapter.Type() == C.Pass || (adapter.Unwrap(metadata) != nil && adapter.Unwrap(metadata).Type() == C.Pass) {
continue
}
if metadata.NetWork == C.UDP && !adapter.SupportUDP() {
log.Debugln("%s UDP is not supported", adapter.Name())
continue