diff --git a/package/lean/luci-app-ssr-plus/Makefile b/package/lean/luci-app-ssr-plus/Makefile index 94e6840ec..81fd4f90c 100644 --- a/package/lean/luci-app-ssr-plus/Makefile +++ b/package/lean/luci-app-ssr-plus/Makefile @@ -1,7 +1,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-ssr-plus -PKG_RELEASE:=140 +PKG_RELEASE:=141 PKG_VERSION:=1 include $(INCLUDE_DIR)/package.mk @@ -37,7 +37,7 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Server config PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Socks bool "Include Socks Sever" - default y if x86_64 + default y endef define Package/luci-app-ssr-plus 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 9aeecf266..f321d7de4 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 @@ -477,10 +477,10 @@ start_local() { local local_server=$(uci_get_by_type socks5_proxy socks 0) [ "$local_server" = 0 ] && return 0 mkdir -p /var/run /var/etc + echo '0.0.0.0 any' > /var/etc/srelay.conf - /usr/bin/srelay -q -c /etc/srelay.conf \ - -i:$(uci_get_by_type socks5_proxy local_port 1080) \ - -p /var/run/ssr-local.pid >/dev/null 2>&1 + /usr/bin/srelay -q -c /var/etc/srelay.conf \ + -i:$(uci_get_by_type socks5_proxy local_port 1080) >/dev/null 2>&1 local_enable=1 }