mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-06 03:14:22 +08:00
update 2026-10-21 17:03:19
This commit is contained in:
1 parent
4570f1512e
commit
a9612da342
14 files changed
+182
-21
No files matched your search
@@ -992,6 +992,8 @@ use_mihomo_for_ss_rust_server() {
|
||||
}
|
||||
|
||||
start_v2ray_with_mihomo() {
|
||||
[ "$(uci_get_by_name "$1" transport)" = "kcptun" ] && return 1
|
||||
[ "$(uci_get_by_name "$1" xray_shadowtls 0)" = "1" ] && return 1
|
||||
# These nodes use Xray-specific settings.
|
||||
case "$(uci_get_by_name "$1" v2ray_protocol)" in naive|shadowsocksr|tuic) return 1 ;; esac
|
||||
local sid="$1"
|
||||
@@ -2247,6 +2249,10 @@ get_udp_relay_mode() {
|
||||
;;
|
||||
v2ray)
|
||||
proto=$(uci_get_by_name "$node" v2ray_protocol)
|
||||
if [ "$(uci_get_by_name "$node" transport)" = "kcptun" ]; then
|
||||
case "$proto" in vmess|vless|trojan) echo "native" ;; *) echo "disabled" ;; esac
|
||||
return
|
||||
fi
|
||||
case "$proto" in
|
||||
snell)
|
||||
case "$(uci_get_by_name "$node" snell_version 4)" in 1|2) echo "disabled" ;; *) echo "native" ;; esac
|
||||
@@ -2749,6 +2755,16 @@ start_server() {
|
||||
echolog "Server: Xray NaiveProxy Server$server_count Started!"
|
||||
;;
|
||||
|
||||
ssr-xray)
|
||||
xray_bin="$(first_type xray)"
|
||||
[ -x "$xray_bin" ] || return 1
|
||||
config_file="$TMP_PATH/xray-server-$server_count.json"
|
||||
lua /usr/share/shadowsocksr/gen_ssr_server.lua "$1" > "$config_file" || return 1
|
||||
"$xray_bin" run -test -c "$config_file" >> /var/ssrplus.log 2>&1 || return 1
|
||||
ln_start_bin "$xray_bin" xray-server-$server_count run -c "$config_file"
|
||||
echolog "Server: Xray ShadowsocksR Server$server_count Started!"
|
||||
;;
|
||||
|
||||
anytls)
|
||||
xray_bin="$(first_type xray)"
|
||||
[ -x "$xray_bin" ] || return 1
|
||||
|
||||
Reference in new issue
Block a user