重构代码, 更新密码函数,支持传入配置文件路径并增加错误处理
This commit is contained in:
@@ -38,10 +38,10 @@ create_hysteria_self_tls_config() {
|
||||
update_port
|
||||
|
||||
# 设置密码
|
||||
update_password
|
||||
update_password "$CONFIG_FILE"
|
||||
|
||||
# 设置混淆密码
|
||||
update_obfs_password
|
||||
update_obfs_password "$CONFIG_FILE"
|
||||
|
||||
green "成功创建配置"
|
||||
}
|
||||
@@ -58,10 +58,10 @@ create_hysteria_acme_tls_config() {
|
||||
update_port
|
||||
|
||||
# 设置密码
|
||||
update_password
|
||||
update_password "$CONFIG_FILE"
|
||||
|
||||
# 设置混淆密码
|
||||
update_obfs_password
|
||||
update_obfs_password "$CONFIG_FILE"
|
||||
|
||||
green "成功创建配置"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user