fix: zapret and other services started before network was fully established
This commit is contained in:
4 files changed
+26
-4
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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}";
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user