feat: Add per-app proxy (Split Tunneling) for desktop platforms
Some checks failed
CI / run (push) Has been cancelled

- Add PerAppProxyOptions struct with Mode, IncludedApplications, ExcludedApplications
- Implement routing rules for include/exclude modes
- Include mode: selected apps use VPN, others go direct
- Exclude mode: selected apps bypass VPN, others use VPN
- Only active on non-Android platforms (Windows, Linux, macOS)
- Logging added for debugging per-app routing decisions

Part of v1.7.6 Split Tunneling feature
This commit is contained in:
Umbrix Developer
2026-01-20 17:38:25 +03:00
parent 2ed45f2485
commit 85db0efc59
2 changed files with 55 additions and 0 deletions

View File

@@ -26,6 +26,13 @@ type HiddifyOptions struct {
InboundOptions
URLTestOptions
RouteOptions
PerAppProxyOptions
}
type PerAppProxyOptions struct {
Mode string `json:"per-app-proxy-mode"` // "off", "include", "exclude"
IncludedApplications []string `json:"included-applications"` // ["chrome.exe", "firefox.exe"]
ExcludedApplications []string `json:"excluded-applications"` // ["steam.exe", "uTorrent.exe"]
}
type DNSOptions struct {