From efc947960d31dddf562fe0c4133c83233fd89345 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Sun, 11 Jan 2026 16:52:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96IPv4=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5=E7=94=9F=E6=88=90=E9=80=BB=E8=BE=91=EF=BC=8C?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=86=97=E4=BD=99=E6=9D=A1=E4=BB=B6=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/print_share_link.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/bin/print_share_link.sh b/bin/print_share_link.sh index e724163..e180463 100644 --- a/bin/print_share_link.sh +++ b/bin/print_share_link.sh @@ -57,16 +57,11 @@ print_xhttp_reality_share_link(){ echo "publicKey/password: $public_key" echo "network: $network" echo "xhttp_path: $xhttp_path" - if [ "$ipv4" != "null" ]; then - sub_ipv4="vless://$uuid@$ipv4:$port?encryption=none&security=reality&type=$network&sni=$sni&fp=chrome&pbk=$public_key&path=$xhttp_path&mode=auto#${ipv4}-my_xray_xhttp_reality" - echo "" - echo "ipv4 分享连接: $sub_ipv4" - echo "" - # 如果qrencode安装了,则打印二维码 - if command -v qrencode &> /dev/null; then - echo -e "ipv4 分享二维码:\n$(echo "$sub_ipv4" | qrencode -o - -t UTF8)" - fi - fi + + local sub_ipv4="vless://$uuid@$ipv4:$port?encryption=none&security=reality&type=$network&sni=$sni&fp=chrome&pbk=$public_key&path=$xhttp_path&mode=auto#${ipv4}-my_xray_xhttp_reality" + echo "" + echo "ipv4 分享连接: $sub_ipv4" + echo "" echo -e "\033[0m" }