From f4ee8e5f9d2612f9ffab45b0b4ff65c66567a587 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Feb 2024 14:05:08 +0000 Subject: [PATCH] update --- bin/gen_key_and_update_key.sh | 2 +- conf/config.json | 6 +++--- conf/key.txt | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 conf/key.txt diff --git a/bin/gen_key_and_update_key.sh b/bin/gen_key_and_update_key.sh index fc3cce4..391e7a0 100644 --- a/bin/gen_key_and_update_key.sh +++ b/bin/gen_key_and_update_key.sh @@ -4,7 +4,7 @@ xray x25519 > ../conf/key.txt echo "success save keys to key.txt" -private_key = $(grep "Public key" ../conf/key.txt | awk -F ': ' '{print $2}' +private_key=$(grep "Public key" ../conf/key.txt | awk -F ': ' '{print $2}') # # update config.json jq ".inbounds[0].streamSettings.realitySettings.privateKey=\"$private_key\"" ../conf/config.json > ../conf/config_temp.json diff --git a/conf/config.json b/conf/config.json index ab0930a..6c02f3a 100644 --- a/conf/config.json +++ b/conf/config.json @@ -45,7 +45,7 @@ "settings": { "clients": [ { - "id": "c51f8991-42e5-4ff2-a028-xxxxxxxxxx", + "id": "6b879520-fcaf-46d7-b1d8-ac7c2e5d911c", "flow": "xtls-rprx-vision" } ], @@ -63,7 +63,7 @@ "serverNames": [ "www.expedia.com" ], - "privateKey": "xxxxxxxxx", + "privateKey": "EddGs_f37IbjDs4I9iW5PVdV64RaiSuaaXywOYCPijE", "shortIds": [ "" ] @@ -124,4 +124,4 @@ } ] } -} \ No newline at end of file +} diff --git a/conf/key.txt b/conf/key.txt deleted file mode 100644 index 3e12651..0000000 --- a/conf/key.txt +++ /dev/null @@ -1,2 +0,0 @@ -Private key: KJ42elMcVqM1b0-5Ny3iCUZVlvelibWKnGoF1kdklig -Public key: 0hBmzH75m67yWOp6z7Z67WFHT7gJ6o3Nql5Jc5nC6WU \ No newline at end of file