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:
FUFSoB committed 2026-09-13 22:37:45 +05:00
1 parent b892384527
commit fdb2b08790
144 files changed
+13198 -14066

No files matched your search

+8 -22
View File
@@ -17,7 +17,7 @@ let
enable = true;
proxy = {
enable = true;
singBox.enable = true;
backend = "sing-box";
tproxy.enable = true;
outbounds = [
{
@@ -44,9 +44,9 @@ let
tproxyAutostartFixture = evalProxySuite [
baseModule
{
services.proxy-suite.proxy.tproxy = {
enable = true;
autostart = true;
services.proxy-suite.proxy = {
tproxy.enable = true;
autostart = "tproxy";
};
}
];
@@ -61,29 +61,15 @@ let
tunAutostartFixture = evalProxySuite [
baseModule
{
services.proxy-suite.proxy.tun = {
enable = true;
autostart = true;
services.proxy-suite.proxy = {
tun.enable = true;
autostart = "tun";
};
}
];
invalidGlobalProxyModeAssertions = mkFailingAssertions mkBadFixture [
# TUN and TProxy cannot both autostart globally.
[
{
services.proxy-suite.proxy = {
tproxy = {
enable = true;
autostart = true;
};
tun = {
enable = true;
autostart = true;
};
};
}
]
# TUN and TProxy can no longer both autostart: proxy.autostart holds one mode.
# Transparent proxy backends require proxy.enable.
[