chore: add some fields for override

This commit is contained in:
xishang0128
2023-12-26 01:45:32 +08:00
parent 4cea3125e6
commit 41a05d96a5
3 changed files with 21 additions and 0 deletions

View File

@@ -393,6 +393,15 @@ func proxiesParseAndFilter(filter string, excludeFilter string, excludeTypeArray
if override.SkipCertVerify != nil {
mapping["skip-cert-verify"] = *override.SkipCertVerify
}
if override.Interface != nil {
mapping["interface-name"] = *override.Interface
}
if override.RoutingMark != nil {
mapping["routing-mark"] = *override.RoutingMark
}
if override.IPVersion != nil {
mapping["ip-version"] = *override.IPVersion
}
proxy, err := adapter.ParseProxy(mapping)
if err != nil {