fix: zapret and other services started before network was fully established

This commit is contained in:
FUFSoB committed 2026-05-30 18:31:48 +05:00
1 parent 110e33bc27
commit 6025e463a5
4 files changed
+26 -4

No files matched your search

+2 -1
View File
@@ -134,7 +134,8 @@ let
name = serviceNames.socks;
value = mkRestartingService {
description = "sing-box proxy client (SOCKS + TProxy-ready)";
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
execStart = scripts.startSocks;
runtimeDirectory = serviceNames.socks;
+2 -1
View File
@@ -55,7 +55,8 @@ in
{
systemd.services.proxy-suite-tg-ws-proxy = {
description = "Telegram MTProto WebSocket proxy";
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${startScript}";
+4 -2
View File
@@ -338,7 +338,8 @@ in
systemd.services.zapret-discord-youtube = mkOneshotService {
description = "zapret DPI bypass";
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
preStart = zapretCommonPreStart globalZapretPackage;
runtimeDirectory = "proxy-suite-zapret";
@@ -352,7 +353,8 @@ in
systemd.services.proxy-suite-per-app-zapret = lib.mkIf perAppZapretCfg.enable (mkOneshotService {
description = "proxy-suite per-app-routing zapret backend";
after = [ "network.target" ];
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
conflicts = [
"proxy-suite-tproxy.service"
"proxy-suite-tun.service"