feat: toggle current proxy mode

This commit is contained in:
FUFSoB committed 2026-04-30 19:49:58 +05:00
1 parent 148f2bf2a2
commit fc95f71292
15 files changed
+697 -24

No files matched your search

+3
View File
@@ -12,6 +12,7 @@
perAppRoutingProfilesFile,
proxychainsConfigFile,
proxychainsQuietArg,
routeModeStateFile,
}:
{
proxyCtl = packages.mkProxyCtl {
@@ -22,7 +23,9 @@
perAppRoutingProfilesFile
proxychainsConfigFile
proxychainsQuietArg
routeModeStateFile
;
defaultRouteMode = if singBoxCfg.proxyByDefault then "blacklist" else "whitelist";
perAppRoutingEnabled = if perAppRoutingCfg.enable then "1" else "0";
perAppRoutingProxychainsEnabled = if perAppRoutingCfg.proxychains.enable then "1" else "0";
perAppRoutingTunEnabled = if perAppRoutingTun.enable then "1" else "0";