fix: multiple fixes + cleanup and formatting

This commit is contained in:
FUFSoB committed 2026-09-17 22:51:31 +05:00
1 parent 321e9ca468
commit c62000821a
59 files changed
+1357 -920

No files matched your search

+18 -11
View File
@@ -221,17 +221,24 @@ let
};
sniffing = standardSniffing;
}
++ lib.zipListsWith (tag: listen: {
inherit tag listen;
protocol = "tunnel";
port = globalTproxy.port;
settings = {
allowedNetwork = "tcp,udp";
followRedirect = true;
};
streamSettings.sockopt.tproxy = "tproxy";
sniffing = standardSniffing;
}) (lib.optionals enableTProxy tproxyInboundTags) [ "127.0.0.1" "::1" ]
++
lib.zipListsWith
(tag: listen: {
inherit tag listen;
protocol = "tunnel";
port = globalTproxy.port;
settings = {
allowedNetwork = "tcp,udp";
followRedirect = true;
};
streamSettings.sockopt.tproxy = "tproxy";
sniffing = standardSniffing;
})
(lib.optionals enableTProxy tproxyInboundTags)
[
"127.0.0.1"
"::1"
]
++ lib.optional enableTun {
tag = "tun-in";
protocol = "tun";