We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6ec52c commit 047bf2bCopy full SHA for 047bf2b
src/core.sh
@@ -1378,7 +1378,9 @@ get() {
1378
[[ $? != 0 ]] && err "无法生成 Shadowsocks 2022 密码, 请安装 openssl."
1379
;;
1380
ping)
1381
- is_host_dns=$(ping $host -c 1 -W 2 | head -1)
+ is_ip_type="-4"
1382
+ [[ $(grep ":" <<<$ip) ]] && is_ip_type="-6"
1383
+ is_host_dns=$(ping $host $is_ip_type -c 1 -W 2 | head -1)
1384
1385
log | logerr)
1386
msg "\n 提醒: 按 $(_green Ctrl + C) 退出\n"
xray.sh
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
3
args=$@
4
-is_sh_ver=v1.12
+is_sh_ver=v1.13
5
6
. /etc/xray/sh/src/init.sh
0 commit comments