luci-app-ssr-plus: fix socks5 global server auto-start

This commit is contained in:
lean 2020-03-25 01:38:14 +08:00
parent c345d4bae7
commit 5c5f32c082
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_VERSION:=174
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

View File

@ -577,7 +577,7 @@ start_server() {
}
start_local() {
local local_server=$(uci_get_by_type socks5_proxy server)
local local_server=$(uci_get_by_type socks5_proxy server nil)
[ "$local_server" = "nil" ] && return 1
local local_type=$(uci_get_by_name $local_server type)
mkdir -p /var/run /var/etc