From ec9e8905b596991ea3c0a7b096b5fd8f8b08c2f0 Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Tue, 26 Nov 2024 14:31:17 +0100 Subject: [PATCH] Fix: use ssserver binary for server on Shadowsocks-Rust --- shadowsocks-rust/files/shadowsocks-rust.init-nft | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shadowsocks-rust/files/shadowsocks-rust.init-nft b/shadowsocks-rust/files/shadowsocks-rust.init-nft index 8adf9b0fc4..2c69a2a7b9 100755 --- a/shadowsocks-rust/files/shadowsocks-rust.init-nft +++ b/shadowsocks-rust/files/shadowsocks-rust.init-nft @@ -70,7 +70,11 @@ ss_xxx() { local cfg="$1" local cfgtype="$2" # local bin="$ss_bindir/${cfgtype/_/-}" - local bin="$ss_bindir/sslocal" + if [ "$cfgtype" = "ss_server" ]; then + local bin="$ss_bindir/ssserver" + else + local bin="$ss_bindir/sslocal" + fi local confjson="$ss_confdir/$cfgtype.$cfg.json" [ -x "$bin" ] || return