refactor: overhaul of options and features
Includes, but not limited to: - zapret2 support - declarative inbounds - proxy-ctl revamp - automatic proxy learning
This commit is contained in:
144 files changed
+13198
-14066
No files matched your search
@@ -6,15 +6,15 @@
|
||||
}:
|
||||
|
||||
let
|
||||
userControlEnabled = userControlCfg.global.enable || userControlCfg.perApp.enable;
|
||||
userControlEnabled = userControlCfg.allow != [ ];
|
||||
|
||||
userControlPolkitRules =
|
||||
lib.optionalString userControlCfg.perApp.enable ''
|
||||
lib.optionalString (builtins.elem "perApp" userControlCfg.allow) ''
|
||||
if (unit.indexOf("proxy-suite-per-app-") === 0) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
''
|
||||
+ lib.optionalString userControlCfg.global.enable ''
|
||||
+ lib.optionalString (builtins.elem "global" userControlCfg.allow) ''
|
||||
if ((unit.indexOf("proxy-suite-") === 0 &&
|
||||
unit.indexOf("proxy-suite-per-app-") !== 0) ||
|
||||
unit === "zapret-discord-youtube.service") {
|
||||
|
||||
Reference in new issue
Block a user