This commit is contained in:
vincent 2024-05-15 21:53:09 +08:00
parent cfaf703094
commit b3dad048f1

View File

@ -21,8 +21,9 @@ IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null") # 本
PORT=$(echo "$config" | jq -r '.listen' | cut -d':' -f2)
# 构建分享链接
share_link="hysteria2://${password}@${IPV4}:${PORT}/?sni=${SNI}&insecure=1#${IPV4}"
SHARE_LINK="hysteria2://${password}@${IPV4}:${PORT}/?sni=${SNI}&insecure=1#${IPV4}"
# 输出分享链接
echo "分享链接: "
echo "$share_link"
echo -e "\033[32m"
echo "分享链接: $SHARE_LINK"
echo -e "\033[0m"