From 984c1d98f4309e1e51c85b75e5e6eed4190d295e Mon Sep 17 00:00:00 2001 From: CN_SZTL Date: Sun, 4 Oct 2020 05:16:14 +0800 Subject: [PATCH] luci-app-ssr-plus: fix concurrency setting for naiveproxy --- package/lean/luci-app-ssr-plus/Makefile | 1 + package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index f9181ecda1..e86015e439 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -22,6 +22,7 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan config PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy bool "Include NaiveProxy" depends on !(arc||armeb||mips||mips64||powerpc) + default y if i386||x86_64||arm||aarch64 config PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2 bool "Include Redsocks2" diff --git a/package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr b/package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr index 66eb6736db..3a519b325d 100755 --- a/package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr +++ b/package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr @@ -205,7 +205,7 @@ gen_config_file() { { "listen": "$PROTO://0.0.0.0:$3", "proxy": "https://$(uci_get_by_name $1 username):$(uci_get_by_name $1 password)@$(uci_get_by_name $1 server):$(uci_get_by_name $1 server_port)", - "concurrency": "$4" + "concurrency": "${4:-1}" } EOF ;;