feat: tor support

This commit is contained in:
FUFSoB committed 2026-09-17 20:12:17 +05:00
1 parent 97332c1774
commit 321e9ca468
42 files changed
+1853 -69

No files matched your search

+6 -1
View File
@@ -6,6 +6,7 @@
tgWsProxyCfg,
customRules,
customRuleCategory,
onionOutbound,
geodata,
}:
@@ -60,7 +61,11 @@ let
action = "hijack-dns";
}
{ action = "sniff"; }
];
]
++ lib.optional (onionOutbound != null) {
domain_suffix = [ "onion" ];
outbound = onionOutbound;
};
customRouteRules = map (rule: {
category = customRuleCategory rule.outbound;