From 3d89e6a965ed54482b4d4c85600413d45b5f23c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 21 Jul 2026 00:05:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8B=20Sync=202026-07-21=2000:05:26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dae/Makefile | 6 +- daed/Makefile | 6 +- luci-app-ssr-plus/Makefile | 2 +- .../root/etc/init.d/shadowsocksr | 110 +++++++++--------- .../usr/share/shadowsocksr/gen_config.lua | 2 +- 5 files changed, 63 insertions(+), 63 deletions(-) diff --git a/dae/Makefile b/dae/Makefile index 1164746d..d47062a2 100644 --- a/dae/Makefile +++ b/dae/Makefile @@ -5,10 +5,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dae -PKG_VERSION:=2026.07.17 -PKG_RELEASE:=18 +PKG_VERSION:=2026.07.20 +PKG_RELEASE:=19 -PKG_SOURCE:=dae-src-2026.07.17-a6c87279b3bf.tar.gz +PKG_SOURCE:=dae-src-2026.07.20-4c2bb0f0cb5e.tar.gz PKG_SOURCE_URL:=https://github.com/kenzok8/openwrt-daede/releases/download/dae-src PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_HASH:=skip diff --git a/daed/Makefile b/daed/Makefile index 934f0dad..b63419d0 100644 --- a/daed/Makefile +++ b/daed/Makefile @@ -5,10 +5,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=daed -PKG_VERSION:=2026.07.17 -PKG_RELEASE:=25 +PKG_VERSION:=2026.07.20 +PKG_RELEASE:=26 -PKG_SOURCE:=daed-src-2026.07.17-1e3ce69d866f.tar.gz +PKG_SOURCE:=daed-src-2026.07.20-42db711ac8ce.tar.gz PKG_SOURCE_URL:=https://github.com/kenzok8/openwrt-daede/releases/download/daed-src PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_HASH:=skip diff --git a/luci-app-ssr-plus/Makefile b/luci-app-ssr-plus/Makefile index a424055f..11e4833b 100644 --- a/luci-app-ssr-plus/Makefile +++ b/luci-app-ssr-plus/Makefile @@ -4,7 +4,7 @@ LUCI_TITLE:=luci-app-ssr-plus LUCI_PKGARCH:=all PKG_NAME:=luci-app-ssr-plus PKG_VERSION:=196 -PKG_RELEASE:=50 +PKG_RELEASE:=51 PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \ diff --git a/luci-app-ssr-plus/root/etc/init.d/shadowsocksr b/luci-app-ssr-plus/root/etc/init.d/shadowsocksr index 1bf46c78..80577713 100755 --- a/luci-app-ssr-plus/root/etc/init.d/shadowsocksr +++ b/luci-app-ssr-plus/root/etc/init.d/shadowsocksr @@ -2028,68 +2028,68 @@ Start_Run() { ln_start_bin "$mihomo_bin" ssr-retcp -d "$tuic_workdir" -f "$tuic_workdir/config.yaml" echolog "Main node:Mihomo (TUIC) Started!" ;; - shadowtls) - if [ -z "$socks_port" ]; then - gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" - gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" 0 chain + shadowtls) + if [ -z "$socks_port" ]; then + gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" + gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" 0 chain + else + gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" + gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" $socks_port chain + fi + local chain_type=$(uci_get_by_name $GLOBAL_SERVER chain_type) + case ${chain_type} in + vmess) + local enable_mihomo=$(uci_get_by_type server_subscribe enable_mihomo "") + ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file + if [ "$enable_mihomo" = "1" ] && start_v2ray_with_mihomo "$GLOBAL_SERVER" "$tcp_port" "$socks_port" "${GLOBAL_SERVER}-shadowtls" "redir" "shadowtls-vmess" "Main node:shadow-tls chain-to"; then + : else - gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" - gen_config_file $GLOBAL_SERVER $type 1 "10${tmp_tcp_local_port}" $socks_port chain - fi - local chain_type=$(uci_get_by_name $GLOBAL_SERVER chain_type) - case ${chain_type} in - vmess) - local enable_mihomo=$(uci_get_by_type server_subscribe enable_mihomo "") - ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file - if [ "$enable_mihomo" = "1" ] && start_v2ray_with_mihomo "$GLOBAL_SERVER" "$tcp_port" "$socks_port" "${GLOBAL_SERVER}-shadowtls" "redir" "shadowtls-vmess" "Main node:shadow-tls chain-to"; then - : + # enable_mihomo=0 或 Mihomo 启动失败 → 尝试 Xray + local xray_bin="$(first_type xray)" + if [ -n "$xray_bin" ]; then + ln_start_bin $(first_type xray) v2ray run -c $tcp_config_file + echolog "Mian node:shadow-tls chain-to $($(first_type xray) --version) Started!" else - # enable_mihomo=0 或 Mihomo 启动失败 → 尝试 Xray - local xray_bin="$(first_type xray)" - if [ -n "$xray_bin" ]; then - ln_start_bin $(first_type xray) v2ray run -c $tcp_config_file - echolog "Mian node:shadow-tls chain-to $($(first_type xray) --version) Started!" + # Xray 不存在但 Mihomo 存在,回退到 Mihomo(当 enable_mihomo=0 时) + if start_v2ray_with_mihomo "$GLOBAL_SERVER" "$tcp_port" "$socks_port" "${GLOBAL_SERVER}-shadowtls" "redir" "shadowtls-vmess" "Main node:shadow-tls chain-to"; then + echolog "Main node:shadow-tls chain-to Xray 内核不存在,已回退到 Mihomo 内核启动。" else - # Xray 不存在但 Mihomo 存在,回退到 Mihomo(当 enable_mihomo=0 时) - if start_v2ray_with_mihomo "$GLOBAL_SERVER" "$tcp_port" "$socks_port" "${GLOBAL_SERVER}-shadowtls" "redir" "shadowtls-vmess" "Main node:shadow-tls chain-to"; then - echolog "Main node:shadow-tls chain-to Xray 内核不存在,已回退到 Mihomo 内核启动。" - else - echolog "Main node:shadow-tls chain-to Xray 和 Mihomo 内核均不存在,无法启动。" - return 1 - fi + echolog "Main node:shadow-tls chain-to Xray 和 Mihomo 内核均不存在,无法启动。" + return 1 fi fi - ;; - sslocal) - ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file - ln_start_bin $(first_type sslocal) sslocal -c $tcp_config_file - echolog "Main node:shadow-tls chain-to $($(first_type sslocal) --version) Started!" - ;; - esac - ;; - clash) - local clash_socks_port=0 - local mihomo_bin="$(first_type mihomo)" - clash_socks_port="$(resolve_global_clash_socks_port)" - if [ -z "$clash_socks_port" ] && [ "$_local" == "1" ] && [ "$LOCAL_SERVER" = "$GLOBAL_SERVER" ]; then - clash_socks_port=$(uci_get_by_type socks5_proxy local_port 1080) fi - [ -x "$mihomo_bin" ] || { - echolog "Main node:Mihomo 内核不存在,请确认 /usr/bin/mihomo 或 /usr/libexec/mihomo 可执行。" - return 1 - } - download_clash_config "$GLOBAL_SERVER" || { - echolog "Main node:Clash 配置不可用,启动中止。" - return 1 - } - prepare_clash_runtime_config "$GLOBAL_SERVER" "$tcp_port" "$clash_socks_port" || { - echolog "Main node:Clash 运行配置生成失败,启动中止。" - return 1 - } - local clash_workdir="$(get_clash_workdir "$GLOBAL_SERVER")" - ln_start_bin "$mihomo_bin" ssr-retcp -d "$clash_workdir" -f "$clash_workdir/config.yaml" - echolog "Main node:Mihomo (Clash) Started!" ;; + sslocal) + ln_start_bin $(first_type shadow-tls) shadow-tls config --config $chain_config_file + ln_start_bin $(first_type sslocal) sslocal -c $tcp_config_file + echolog "Main node:shadow-tls chain-to $($(first_type sslocal) --version) Started!" + ;; + esac + ;; + clash) + local clash_socks_port=0 + local mihomo_bin="$(first_type mihomo)" + clash_socks_port="$(resolve_global_clash_socks_port)" + if [ -z "$clash_socks_port" ] && [ "$_local" == "1" ] && [ "$LOCAL_SERVER" = "$GLOBAL_SERVER" ]; then + clash_socks_port=$(uci_get_by_type socks5_proxy local_port 1080) + fi + [ -x "$mihomo_bin" ] || { + echolog "Main node:Mihomo 内核不存在,请确认 /usr/bin/mihomo 或 /usr/libexec/mihomo 可执行。" + return 1 + } + download_clash_config "$GLOBAL_SERVER" || { + echolog "Main node:Clash 配置不可用,启动中止。" + return 1 + } + prepare_clash_runtime_config "$GLOBAL_SERVER" "$tcp_port" "$clash_socks_port" || { + echolog "Main node:Clash 运行配置生成失败,启动中止。" + return 1 + } + local clash_workdir="$(get_clash_workdir "$GLOBAL_SERVER")" + ln_start_bin "$mihomo_bin" ssr-retcp -d "$clash_workdir" -f "$clash_workdir/config.yaml" + echolog "Main node: $($mihomo_bin -v 2>&1 | head -1 | awk '{print $1, $3}') (Clash) Started!" + ;; socks5) if start_socks5_redir_with_ipt2socks "$GLOBAL_SERVER" "$tcp_port" "$threads"; then : diff --git a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua index a36c25ac..5e85894a 100755 --- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua +++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua @@ -481,7 +481,7 @@ Xray.outbounds = { tag = (remarks ~= nil and remarks ~= "") and (node_id .. ":" .. remarks) or node_id, -- 底层传输配置 streamSettings = (server.v2ray_protocol ~= "wireguard") and { - network = (server.v2ray_protocol == "hysteria2") and "hysteria" or (server.transport or "raw"), + [(xray_version_val >= 260711) and "method" or "network"] = (server.v2ray_protocol == "hysteria2") and "hysteria" or (server.transport or "raw"), security = (server.xtls == '1') and "xtls" or (server.tls == '1') and "tls" or (server.reality == '1') and "reality" or nil, tlsSettings = (server.tls == '1') and { -- tls