fix: Exclude Umbrix processes from VPN routing
- Uncommented process exclusion rule for desktop platforms - Changed process names from Hiddify to Umbrix - Added 'Umbrix Start.exe' to handle renamed launcher - Prevents routing loops when Umbrix routes its own traffic Process names excluded: - Umbrix, Umbrix.exe (main app) - Umbrix Start.exe (launcher) - UmbrixCli, UmbrixCli.exe (CLI utility)
This commit is contained in:
@@ -482,16 +482,17 @@ func setRoutingOptions(options *option.Options, opt *HiddifyOptions) {
|
||||
},
|
||||
},
|
||||
)
|
||||
// routeRules = append(
|
||||
// routeRules,
|
||||
// option.Rule{
|
||||
// Type: C.RuleTypeDefault,
|
||||
// DefaultOptions: option.DefaultRule{
|
||||
// ProcessName: []string{"Hiddify", "Hiddify.exe", "HiddifyCli", "HiddifyCli.exe"},
|
||||
// Outbound: OutboundBypassTag,
|
||||
// },
|
||||
// },
|
||||
// )
|
||||
// Exclude Umbrix itself from VPN to avoid routing loops
|
||||
routeRules = append(
|
||||
routeRules,
|
||||
option.Rule{
|
||||
Type: C.RuleTypeDefault,
|
||||
DefaultOptions: option.DefaultRule{
|
||||
ProcessName: []string{"Umbrix", "Umbrix.exe", "Umbrix Start.exe", "UmbrixCli", "UmbrixCli.exe"},
|
||||
Outbound: OutboundBypassTag,
|
||||
},
|
||||
},
|
||||
)
|
||||
}
|
||||
routeRules = append(routeRules, option.Rule{
|
||||
Type: C.RuleTypeDefault,
|
||||
|
||||
Reference in New Issue
Block a user