refactor: 修改函数名字

This commit is contained in:
Olia Lisa
2026-07-20 15:39:11 +08:00
parent d85371db37
commit 79398241f4
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ create_reality_config(){
update_short_id update_short_id
# 生成密钥对, 修改config.json中的密钥属性 # 生成密钥对, 修改config.json中的密钥属性
update_key update_reality_key
# 设置端口 # 设置端口
update_port 443 update_port 443
@@ -37,7 +37,7 @@ create_xhttp_reality_config(){
update_short_id update_short_id
# 生成密钥对, 修改config.json中的密钥属性 # 生成密钥对, 修改config.json中的密钥属性
update_key update_reality_key
# 生成xhttp_path, 写入到config.json文件 # 生成xhttp_path, 写入到config.json文件
update_xhttp_path update_xhttp_path
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
update_key(){ update_reality_key(){
local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径 local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 脚本文件绝对路径
local config_dir="$script_dir/../conf" local config_dir="$script_dir/../conf"