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:
Umbrix Developer
2026-01-20 16:54:51 +03:00
parent 6dfe63ea76
commit 0e15babcb3

View File

@@ -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,