Fix bug in traffic limit calculating

This commit is contained in:
Sarina
2024-07-22 20:16:44 +03:30
parent fe82616b7f
commit 6dac40d2b2

View File

@ -28,8 +28,6 @@ hysteria2_add_user_handler() {
done done
read -p "Enter the traffic limit (in GB): " traffic_gb read -p "Enter the traffic limit (in GB): " traffic_gb
# Convert GB to bytes (1 GB = 1073741824 bytes)
traffic=$((traffic_gb * 1073741824))
read -p "Enter the expiration days: " expiration_days read -p "Enter the expiration days: " expiration_days
password=$(pwgen -s 32 1) password=$(pwgen -s 32 1)