luci-app-ssr-plus: enable socks server by default

This commit is contained in:
coolsnowwolf 2020-02-14 16:31:38 +08:00
parent 3de61c4715
commit b66b640bb4
2 changed files with 5 additions and 5 deletions

View File

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

View File

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