feat: whitelists bypass methods

This commit is contained in:
fufsob committed 2026-09-25 02:24:05 +00:00
1 parent 11c44deb61
commit f3e9140f62
22 files changed
+716 -3

No files matched your search

+18
View File
@@ -72,6 +72,24 @@ in
ROUTE_MODE_STATE_FILE = routeModeStateFile;
DEFAULT_ROUTE_MODE = if proxyCfg.routing.default == "proxy" then "blacklist" else "whitelist";
AWG_PROFILES_FILE = toString amneziaWgProfileNamesFile;
WL_FILE = toString (
pkgs.writeText "proxy-suite-control" (
builtins.toJSON (
lib.optionals cfg.whitelistBypass.enable (
lib.mapAttrsToList (name: c: {
inherit name;
inherit (c) platform;
role = "creator";
}) cfg.whitelistBypass.creators
++ lib.mapAttrsToList (name: j: {
inherit name;
inherit (j) platform;
role = "joiner";
}) cfg.whitelistBypass.joiners
)
)
)
);
INBOUNDS_ENABLED = flag proxyInboundsEnabled;
INBOUNDS_LINKS_FILE = proxyInboundsLinksFile;
INBOUNDS_STATS_FILE = constants.inboundStatsFile;