From 79398241f4290e811048d05fca15e23560783326 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Mon, 20 Jul 2026 15:39:11 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/create_config.sh | 6 +++--- bin/reality.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/create_config.sh b/bin/create_config.sh index 9556d98..954a090 100644 --- a/bin/create_config.sh +++ b/bin/create_config.sh @@ -13,7 +13,7 @@ create_reality_config(){ update_short_id # 生成密钥对, 修改config.json中的密钥属性 - update_key + update_reality_key # 设置端口 update_port 443 @@ -32,12 +32,12 @@ create_xhttp_reality_config(){ # 生成uuid, 写入到config.json文件 update_uuid - + # 生成shor_id, 写入到config.json文件 update_short_id # 生成密钥对, 修改config.json中的密钥属性 - update_key + update_reality_key # 生成xhttp_path, 写入到config.json文件 update_xhttp_path diff --git a/bin/reality.sh b/bin/reality.sh index 4ab7569..88d3474 100644 --- a/bin/reality.sh +++ b/bin/reality.sh @@ -1,6 +1,6 @@ #!/bin/bash -update_key(){ +update_reality_key(){ local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径 local config_dir="$script_dir/../conf"