From 5993b5f53b8fc19772bc08195f9d794f40028879 Mon Sep 17 00:00:00 2001 From: 233boy <31657650+233boy@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:07:56 +0800 Subject: [PATCH] fix socks udp --- src/core.sh | 2 +- xray.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.sh b/src/core.sh index afd0be2..a7b9ec1 100644 --- a/src/core.sh +++ b/src/core.sh @@ -1295,7 +1295,7 @@ get() { is_protocol=socks [[ ! $is_socks_user ]] && is_socks_user=233boy [[ ! $is_socks_pass ]] && is_socks_pass=$uuid - json_str='settings:{auth:"password",accounts:[{user:"'$is_socks_user'",pass:"'$is_socks_pass'"}],udp:true}' + json_str='settings:{auth:"password",accounts:[{user:"'$is_socks_user'",pass:"'$is_socks_pass'"}],udp:true,ip:"0.0.0.0"}' ;; *) err "无法识别协议: $is_config_file" diff --git a/xray.sh b/xray.sh index 211a4e2..2dfe17c 100644 --- a/xray.sh +++ b/xray.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v1.22 +is_sh_ver=v1.23 . /etc/xray/sh/src/init.sh \ No newline at end of file