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( // Exclude Umbrix itself from VPN to avoid routing loops
// routeRules, routeRules = append(
// option.Rule{ routeRules,
// Type: C.RuleTypeDefault, option.Rule{
// DefaultOptions: option.DefaultRule{ Type: C.RuleTypeDefault,
// ProcessName: []string{"Hiddify", "Hiddify.exe", "HiddifyCli", "HiddifyCli.exe"}, DefaultOptions: option.DefaultRule{
// Outbound: OutboundBypassTag, ProcessName: []string{"Umbrix", "Umbrix.exe", "Umbrix Start.exe", "UmbrixCli", "UmbrixCli.exe"},
// }, Outbound: OutboundBypassTag,
// }, },
// ) },
)
} }
routeRules = append(routeRules, option.Rule{ routeRules = append(routeRules, option.Rule{
Type: C.RuleTypeDefault, Type: C.RuleTypeDefault,