fix: bug fixes

This commit is contained in:
fufsob committed 2026-09-16 08:43:53 +00:00
1 parent 9cdd6dada7
commit 027dc7b1a9
31 files changed
+626 -121

No files matched your search

+9 -3
View File
@@ -105,7 +105,12 @@ let
wantedBy = [ "multi-user.target" ];
execStart = scripts.startInbounds;
runtimeDirectory = serviceNames.inbounds;
extraServiceConfig = xrayAssetEnv;
# The collector's file.
stateDirectory = "proxy-suite";
# While XRay still runs: what it counted since the last timer run.
extraServiceConfig = xrayAssetEnv // {
ExecStop = scripts.collectInboundStats;
};
};
}
{
@@ -246,8 +251,9 @@ let
enable = proxyEnabled;
name = "proxy-suite-outbound-pin@";
value = mkOneshotService {
description = "Pin the proxy-suite outbound to %i";
execStart = "${scripts.pinOutboundScript} %i";
# %I: proxy-ctl systemd-escapes the tag, so "ssh-proxy" arrives as ssh\x2dproxy.
description = "Pin the proxy-suite outbound to %I";
execStart = "${scripts.pinOutboundScript} %I";
stateDirectory = "proxy-suite";
extraServiceConfig.RemainAfterExit = false;
};