luci-app-ssr-plus: fix concurrency setting for naiveproxy
This commit is contained in:
parent
817139b31a
commit
5d0355d556
@ -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"
|
||||
|
||||
@ -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
|
||||
;;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user