refactor: 修改函数名字
This commit is contained in:
@@ -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
|
||||||
@@ -32,12 +32,12 @@ create_xhttp_reality_config(){
|
|||||||
|
|
||||||
# 生成uuid, 写入到config.json文件
|
# 生成uuid, 写入到config.json文件
|
||||||
update_uuid
|
update_uuid
|
||||||
|
|
||||||
# 生成shor_id, 写入到config.json文件
|
# 生成shor_id, 写入到config.json文件
|
||||||
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
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user