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