mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-17 21:03:30 +00:00
luci-app-ssr-plus: enable socks server by default
This commit is contained in:
parent
3de61c4715
commit
b66b640bb4
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user