This commit is contained in:
vincent 2024-02-11 16:10:27 +08:00
parent aee040b2f1
commit 19ac819a3d

View File

@ -13,7 +13,7 @@ if ! command -v qrencode &> /dev/null; then
fi fi
# 获取IP # 获取本机IP
IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null") IPV4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
UUID=$(jq -r '.inbounds[0].settings.clients[0].id' ./conf/config.json) UUID=$(jq -r '.inbounds[0].settings.clients[0].id' ./conf/config.json)
@ -26,9 +26,9 @@ PUBLIC_KEY=$(cat ./conf/key.txt | grep "Public" | awk -F ': ' '{print $2}')
# config info with green color # config info with green color
echo -e "\033[32m" echo -e "\033[32m"
echo "IPV4: $IPV4" echo "IPV4: $IPV4"
echo "PORT: $PORT"
echo "UUID: $UUID" echo "UUID: $UUID"
echo "DEST: $DEST" echo "DEST: $DEST"
echo "PORT: $PORT"
echo "PUBLIC_KEY: $PUBLIC_KEY" echo "PUBLIC_KEY: $PUBLIC_KEY"
echo "NETWORK: $NETWORK" echo "NETWORK: $NETWORK"
if [ "$IPV4" != "null" ]; then if [ "$IPV4" != "null" ]; then