new routing options

This commit is contained in:
FUFSoB committed 2026-04-12 04:50:13 +05:00
1 parent 88a7bb48f8
commit cedb49a5fa
7 files changed
+275 -24

No files matched your search

+14 -2
View File
@@ -240,6 +240,12 @@ in
};
routing = {
enableRuDirect = mkOption {
type = types.bool;
default = true;
description = "Automatically send sing-geosite category-ru and sing-geoip ru traffic direct.";
};
proxy = routingFields;
direct = {
@@ -255,12 +261,12 @@ in
};
geosites = mkOption {
type = types.listOf types.str;
default = [ "category-ru" ];
default = [ ];
description = "sing-geosite names to send direct.";
};
geoips = mkOption {
type = types.listOf types.str;
default = [ "ru" ];
default = [ ];
description = "sing-geoip names to send direct.";
};
};
@@ -329,6 +335,12 @@ in
zapret = {
enable = mkEnableOption "zapret DPI bypass";
syncDirectRouting = mkOption {
type = types.bool;
default = true;
description = "When zapret is enabled, mirror its effective domain and IP lists into sing-box direct routing.";
};
configName = mkOption {
type = types.str;
default = "general(ALT)";