diff --git a/install.sh b/install.sh index 7903664..f8150dc 100644 --- a/install.sh +++ b/install.sh @@ -125,7 +125,7 @@ show_help() { echo -e "Usage: $0 [-f xxx | -l | -p xxx | -v xxx | -h]" echo -e " -f, --core-file 自定义 $is_core_name 文件路径, e.g., -f /root/$is_core-linux-amd64.tar.gz" echo -e " -l, --local-install 本地获取安装脚本, 使用当前目录" - echo -e " -p, --proxy 使用代理下载, e.g., -p http://127.0.0.1:2333 or -p socks5://127.0.0.1:2333" + echo -e " -p, --proxy 使用代理下载, e.g., -p http://127.0.0.1:2333" echo -e " -v, --core-version 自定义 $is_core_name 版本, e.g., -v v1.8.13" echo -e " -h, --help 显示此帮助界面\n" diff --git a/sing-box.sh b/sing-box.sh index ad46279..81bd8e6 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -1,6 +1,6 @@ #!/bin/bash args=$@ -is_sh_ver=v1.07 +is_sh_ver=v1.08 . /etc/sing-box/sh/src/init.sh \ No newline at end of file diff --git a/src/core.sh b/src/core.sh index 203b002..7706a20 100644 --- a/src/core.sh +++ b/src/core.sh @@ -1022,6 +1022,7 @@ get() { [[ ! $is_addr ]] && { get_ip is_addr=$ip + [[ $(grep ":" <<<$ip) ]] && is_addr="[$ip]" } ;; new) @@ -1348,7 +1349,7 @@ info() { is_info_show=(${is_info_show[@]/15/}) } is_info_str=($is_protocol $is_addr $port $uuid $is_flow $is_net_type reality $is_servername chrome $is_public_key) - is_url="$is_protocol://$uuid@$ip:$port?encryption=none&security=reality&flow=$is_flow&type=$is_net_type&sni=$is_servername&pbk=$is_public_key&fp=chrome#233boy-$net-$is_addr" + is_url="$is_protocol://$uuid@$is_addr:$port?encryption=none&security=reality&flow=$is_flow&type=$is_net_type&sni=$is_servername&pbk=$is_public_key&fp=chrome#233boy-$net-$is_addr" ;; direct) is_can_change=(0 1 7 8)