fix: hardening

This commit is contained in:
FUFSoB committed 2026-10-05 22:44:09 +05:00
1 parent 017a947a18
commit a435942b4f
168 files changed
+9166 -1644

No files matched your search

+12
View File
@@ -148,6 +148,11 @@ let
mkSubscriptionLoadHelperBlock
runtimeSubscriptionsBlock
;
# What the start script adds after the runtime outbounds: one of theirs named like these
# would fail the backend's start, every outbound with it.
laterTags = sctx.effectiveOutboundTags ++ sctx.groupTags;
singBoxBin = if pureXrayEnabled then null else sctx.singBox;
xrayBin = if xrayEnabled then sctx.xray else null;
};
inherit (outboundScripts) mkOutboundScript;
@@ -161,6 +166,13 @@ let
proxyInboundsGuardPrivate
proxyInboundsGuardStrategy
;
proxyInboundsBlockPrivate = proxyInboundsCfg.routing.blockPrivate;
inherit (ctx) proxyInboundsLoopback proxyInboundsHostClosedPorts;
listenerExposed =
let
address = proxyCfg.listener.address;
in
!(lib.hasPrefix "127." address || address == "::1" || address == "localhost");
userDnsRules = proxyCfg.dns.singBox.rules;
awgRuntimeDnsServer =
if ctx.awgRuntimeIfaceOutbounds then