Skip to content

Commit 7270c1a

Browse files
committed
fix socks udp
1 parent f75e3f1 commit 7270c1a

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
@@ -1303,7 +1303,7 @@ get() {
13031303
net=socks
13041304
[[ ! $is_socks_user ]] && is_socks_user=233boy
13051305
[[ ! $is_socks_pass ]] && is_socks_pass=$uuid
1306-
json_str='settings:{auth:"password",accounts:[{user:'\"$is_socks_user\"',pass:'\"$is_socks_pass\"'}],udp:true}'
1306+
json_str='settings:{auth:"password",accounts:[{user:'\"$is_socks_user\"',pass:'\"$is_socks_pass\"'}],udp:true,ip:"0.0.0.0"}'
13071307
;;
13081308
*)
13091309
err "无法识别协议: $is_config_file"

v2ray.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=v4.21
4+
is_sh_ver=v4.22
55

66
. /etc/v2ray/sh/src/init.sh

0 commit comments

Comments
 (0)