luci-app-ssr-plus: fix concurrency setting for naiveproxy

This commit is contained in:
CN_SZTL 2020-10-04 05:16:14 +08:00
parent ed0bdd09be
commit 984c1d98f4
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -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
;;