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

+5
View File
@@ -60,6 +60,9 @@ let
}
) proxyCfg.outbounds;
# .onion names go to Tor in every route mode: nothing else can reach them.
onionOutbound = if derived.torRouteOnion then resolveTag derived.torOutboundTag else null;
# All custom rules in priority order: per-outbound first, then explicit routing.rules.
customRules =
perOutboundRules ++ map (rule: rule // { outbound = resolveTag rule.outbound; }) r.rules;
@@ -72,6 +75,7 @@ let
tgWsProxyCfg
customRules
customRuleCategory
onionOutbound
;
inherit (cfg) geodata;
};
@@ -91,6 +95,7 @@ let
tgWsProxyCfg
customRules
customRuleCategory
onionOutbound
;
inherit (derived) selectionMode;
};