feat : Optimize user edit workflow and eliminate service restart delay

This commit is contained in:
Whispering Wind
2025-04-14 12:53:15 +03:30
committed by GitHub
parent 49b9580b60
commit 35d917b887
3 changed files with 5 additions and 1 deletions

View File

@ -224,7 +224,7 @@ edit_user() {
new_creation_date=${new_creation_date:-$creation_date}
new_blocked=$(convert_blocked_status "${new_blocked:-$blocked}")
python3 $CLI_PATH restart-hysteria2
# python3 $CLI_PATH restart-hysteria2
if ! update_user_info "$username" "$new_username" "$new_password" "$new_traffic_limit" "$new_expiration_days" "$new_creation_date" "$new_blocked"; then
return 1 # Update user failed