重构代码, 更新密码函数,支持传入配置文件路径并增加错误处理

This commit is contained in:
Olia Lisa
2026-05-28 14:51:17 +08:00
parent 30a50c0292
commit 499b085f05
3 changed files with 30 additions and 22 deletions
+4 -4
View File
@@ -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 "成功创建配置"
}