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

+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"