diff --git a/bin/print_share_link.sh b/bin/print_share_link.sh index e8b844c..4fd1ccd 100644 --- a/bin/print_share_link.sh +++ b/bin/print_share_link.sh @@ -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