From 5c5f32c08273a7ab7863c0636cb56cb0dc62f844 Mon Sep 17 00:00:00 2001 From: lean Date: Wed, 25 Mar 2020 01:38:14 +0800 Subject: [PATCH] luci-app-ssr-plus: fix socks5 global server auto-start --- package/lean/luci-app-ssr-plus/Makefile | 2 +- package/lean/luci-app-ssr-plus/root/etc/init.d/shadowsocksr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index 3c411d4ce..1d30ecf41 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -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) 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 fe57f9a2a..665fe3410 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 @@ -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