Feature: support multiport condition for rule SRC-PORT and DST-PORT

This commit is contained in:
yaling888
2021-07-06 15:07:05 +08:00
parent e2c7b19000
commit 56dff65149
6 changed files with 118 additions and 28 deletions

View File

@ -6,6 +6,7 @@ import (
"net"
"net/url"
"os"
"runtime"
"strings"
"github.com/Dreamacro/clash/adapter"
@ -433,6 +434,8 @@ func parseRules(cfg *RawConfig, proxies map[string]C.Proxy) ([]C.Rule, error) {
rules = append(rules, parsed)
}
runtime.GC()
return rules, nil
}