This commit is contained in:
Kiolow 2024-12-14 20:30:23 +08:00
parent 26d0d36b31
commit b80d7dc367

View File

@ -15,8 +15,8 @@ ipv4=$(curl -4 -sSL --connect-timeout 3 --retry 2 ip.sb || echo "null")
uuid=$(jq -r '.inbounds[0].settings.clients[0].id' $config_dir/config.json)
port=$(jq -r '.inbounds[0].port' $config_dir/config.json)
dest=$(jq -r '.inbounds[0].streamSettings.realitySettings.target' $config_dir/config.json)
sni=$(echo $dest | awk -F ':' '{print $1}')
target=$(jq -r '.inbounds[0].streamSettings.realitySettings.target' $config_dir/config.json)
sni=$(echo $target | awk -F ':' '{print $1}')
network="tcp"
public_key=$(cat $config_dir/key.txt | grep "Public" | awk -F ': ' '{print $2}')
@ -25,7 +25,7 @@ echo -e "\033[32m" # config info with green color
echo "IPV4: $ipv4"
echo "PORT: $port"
echo "UUID: $uuid"
echo "DEST: $dest"
echo "SNI: $sni"
echo "PUBLIC_KEY: $public_key"
echo "NETWORK: $network"
if [ "$ipv4" != "null" ]; then