From 26d0d36b3164ec50ec044a68295b95f2b91eae0c Mon Sep 17 00:00:00 2001 From: Kiolow Date: Sat, 14 Dec 2024 20:27:01 +0800 Subject: [PATCH] update --- bin/print_share_link.sh | 4 ++-- conf/config.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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": "",