Skip to content

Commit 5993b5f

Browse files
committed
fix socks udp
1 parent bae41f6 commit 5993b5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ get() {
12951295
is_protocol=socks
12961296
[[ ! $is_socks_user ]] && is_socks_user=233boy
12971297
[[ ! $is_socks_pass ]] && is_socks_pass=$uuid
1298-
json_str='settings:{auth:"password",accounts:[{user:"'$is_socks_user'",pass:"'$is_socks_pass'"}],udp:true}'
1298+
json_str='settings:{auth:"password",accounts:[{user:"'$is_socks_user'",pass:"'$is_socks_pass'"}],udp:true,ip:"0.0.0.0"}'
12991299
;;
13001300
*)
13011301
err "无法识别协议: $is_config_file"

xray.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
args=$@
4-
is_sh_ver=v1.22
4+
is_sh_ver=v1.23
55

66
. /etc/xray/sh/src/init.sh

0 commit comments

Comments
 (0)