Fix bug in traffic limit calculating
This commit is contained in:
2
menu.sh
2
menu.sh
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user