diff --git a/bin/print_share_link.sh b/bin/print_share_link.sh index a0bb5e0..e8b844c 100644 --- a/bin/print_share_link.sh +++ b/bin/print_share_link.sh @@ -15,7 +15,7 @@ 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.dest' $config_dir/config.json) +dest=$(jq -r '.inbounds[0].streamSettings.realitySettings.target' $config_dir/config.json) sni=$(echo $dest | awk -F ':' '{print $1}') network="tcp" public_key=$(cat $config_dir/key.txt | grep "Public" | awk -F ': ' '{print $2}') @@ -37,4 +37,4 @@ if [ "$ipv4" != "null" ]; then fi fi -echo -e "\033[0m" \ No newline at end of file +echo -e "\033[0m" diff --git a/conf/config.json b/conf/config.json index 01c9110..8312a7a 100644 --- a/conf/config.json +++ b/conf/config.json @@ -56,7 +56,7 @@ "security": "reality", "realitySettings": { "show": true, - "dest": "www.expedia.com:443", + "target": "www.expedia.com:443", "xver": 0, "maxTimeDiff": 0, "minClientVer": "",