luci-app-ssr-plus: switch to sagernet-core
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
dc1855d93a
commit
259337aacb
@ -10,6 +10,7 @@ PKG_CONFIG_DEPENDS:= \
|
|||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_PDNSD \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_PDNSD \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2 \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2 \
|
||||||
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_SagerNet_Core \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Rust_Client \
|
||||||
@ -18,8 +19,7 @@ PKG_CONFIG_DEPENDS:= \
|
|||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Trojan \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Trojan \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin \
|
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_INCLUDE_Xray
|
|
||||||
|
|
||||||
LUCI_TITLE:=SS/SSR/V2Ray/Trojan/NaiveProxy/Socks5/Tun LuCI interface
|
LUCI_TITLE:=SS/SSR/V2Ray/Trojan/NaiveProxy/Socks5/Tun LuCI interface
|
||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
@ -33,6 +33,8 @@ LUCI_DEPENDS:= \
|
|||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy:naiveproxy \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_NaiveProxy:naiveproxy \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_PDNSD:pdnsd-alt \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_PDNSD:pdnsd-alt \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2:redsocks2 \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2:redsocks2 \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_SagerNet_Core:curl \
|
||||||
|
+PACKAGE_$(PKG_NAME)_INCLUDE_SagerNet_Core:sagernet-core \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-local \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-local \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-redir \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client:shadowsocks-libev-ss-redir \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server:shadowsocks-libev-ss-server \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Server:shadowsocks-libev-ss-server \
|
||||||
@ -43,9 +45,7 @@ LUCI_DEPENDS:= \
|
|||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server:shadowsocksr-libev-ssr-server \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_ShadowsocksR_Libev_Server:shadowsocksr-libev-ssr-server \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs:simple-obfs \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Simple_Obfs:simple-obfs \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_Trojan:trojan \
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin:v2ray-plugin \
|
+PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin:v2ray-plugin
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Xray:curl \
|
|
||||||
+PACKAGE_$(PKG_NAME)_INCLUDE_Xray:xray-core
|
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/config
|
define Package/$(PKG_NAME)/config
|
||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun
|
config PACKAGE_$(PKG_NAME)_INCLUDE_Kcptun
|
||||||
@ -69,6 +69,10 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Redsocks2
|
|||||||
bool "Include Redsocks2"
|
bool "Include Redsocks2"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config PACKAGE_$(PKG_NAME)_INCLUDE_SagerNet_Core
|
||||||
|
bool "Include sagernet-core (An enhanced edition of v2ray-core)"
|
||||||
|
default y if aarch64||arm||i386||x86_64
|
||||||
|
|
||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client
|
config PACKAGE_$(PKG_NAME)_INCLUDE_Shadowsocks_Libev_Client
|
||||||
bool "Include Shadowsocks Libev Client"
|
bool "Include Shadowsocks Libev Client"
|
||||||
default y if i386||x86_64||arm
|
default y if i386||x86_64||arm
|
||||||
@ -109,10 +113,6 @@ config PACKAGE_$(PKG_NAME)_INCLUDE_Trojan
|
|||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin
|
config PACKAGE_$(PKG_NAME)_INCLUDE_V2ray_Plugin
|
||||||
bool "Include Shadowsocks V2ray Plugin"
|
bool "Include Shadowsocks V2ray Plugin"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config PACKAGE_$(PKG_NAME)_INCLUDE_Xray
|
|
||||||
bool "Include Xray"
|
|
||||||
default y if aarch64||arm||i386||x86_64
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/$(PKG_NAME)/conffiles
|
define Package/$(PKG_NAME)/conffiles
|
||||||
|
@ -365,8 +365,8 @@ start_udp() {
|
|||||||
;;
|
;;
|
||||||
v2ray)
|
v2ray)
|
||||||
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_port
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -config $udp_config_file
|
ln_start_bin $(first_type v2ray xray) v2ray run -config $udp_config_file
|
||||||
echolog "UDP TPROXY Relay:$($(first_type "xray" "v2ray") version | head -1) Started!"
|
echolog "UDP TPROXY Relay:$($(first_type "v2ray" "xray") version | head -1) Started!"
|
||||||
;;
|
;;
|
||||||
trojan) #client
|
trojan) #client
|
||||||
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_local_port
|
gen_config_file $UDP_RELAY_SERVER $type 2 $tmp_udp_local_port
|
||||||
@ -415,9 +415,9 @@ start_shunt() {
|
|||||||
v2ray)
|
v2ray)
|
||||||
local tmp_port=${tmp_local_port:-$tmp_shunt_local_port}
|
local tmp_port=${tmp_local_port:-$tmp_shunt_local_port}
|
||||||
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port $tmp_port
|
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port $tmp_port
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -config $shunt_config_file
|
ln_start_bin $(first_type v2ray xray) v2ray run -config $shunt_config_file
|
||||||
ln_start_bin $(first_type dns2socks) dns2socks 127.0.0.1:$tmp_port 8.8.8.8:53 127.0.0.1:$tmp_shunt_dns_port -q
|
ln_start_bin $(first_type dns2socks) dns2socks 127.0.0.1:$tmp_port 8.8.8.8:53 127.0.0.1:$tmp_shunt_dns_port -q
|
||||||
echolog "shunt:$($(first_type xray v2ray) version | head -1) Started!"
|
echolog "shunt:$($(first_type v2ray xray) version | head -1) Started!"
|
||||||
;;
|
;;
|
||||||
trojan)
|
trojan)
|
||||||
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port
|
gen_config_file $SHUNT_SERVER $type 3 $tmp_shunt_port
|
||||||
@ -491,9 +491,9 @@ start_local() {
|
|||||||
v2ray)
|
v2ray)
|
||||||
if [ "$_local" == "2" ]; then
|
if [ "$_local" == "2" ]; then
|
||||||
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
|
gen_config_file $LOCAL_SERVER $type 4 0 $local_port
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -config $local_config_file
|
ln_start_bin $(first_type v2ray xray) v2ray run -config $local_config_file
|
||||||
fi
|
fi
|
||||||
echolog "Global_Socks5:$($(first_type "xray" "v2ray") version | head -1) Started!"
|
echolog "Global_Socks5:$($(first_type "v2ray" "xray") version | head -1) Started!"
|
||||||
;;
|
;;
|
||||||
trojan) #client
|
trojan) #client
|
||||||
gen_config_file $LOCAL_SERVER $type 4 $local_port
|
gen_config_file $LOCAL_SERVER $type 4 $local_port
|
||||||
@ -553,8 +553,8 @@ Start_Run() {
|
|||||||
;;
|
;;
|
||||||
v2ray)
|
v2ray)
|
||||||
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
|
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port $socks_port
|
||||||
ln_start_bin $(first_type xray v2ray) v2ray run -config $tcp_config_file
|
ln_start_bin $(first_type v2ray xray) v2ray run -config $tcp_config_file
|
||||||
echolog "Main node:$($(first_type xray v2ray) version | head -1) Started!"
|
echolog "Main node:$($(first_type v2ray xray) version | head -1) Started!"
|
||||||
;;
|
;;
|
||||||
trojan)
|
trojan)
|
||||||
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port
|
gen_config_file $GLOBAL_SERVER $type 1 $tcp_port
|
||||||
|
Loading…
Reference in New Issue
Block a user