mirror of
https://github.com/amnezia-vpn/amneziawg-windows-client.git
synced 2026-10-13 21:34:51 +00:00
[GH-ISSUE #111] H1-H4 validation uses int32 instead of uint32 #75
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/amneziawg-windows-client#75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shah333333 on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-windows-client/issues/111
Environment:
Issue:
The Save button becomes disabled when H1-H4 values exceed INT32_MAX.
Steps to reproduce:
Create/import a tunnel.
Set:
H3 = 263187292
-> Save button is enabled.
Change to:
H3 = 2631872921
-> Save button becomes disabled.
The same happens with H4:
H4 = 3805077187
Android clients (AmneziaWG 2.0.1 and WG Tunnel 5.0.9) accept these values and work correctly.
Expected behavior:
H1-H4 should accept the full uint32 range:
0...4294967295
Actual behavior:
Values above 2147483647 are considered invalid.
Working:
Save button is enabled.
Not working:
Save button becomes disabled.
@shah333333 commented on GitHub (Jul 17, 2026):
Additional information:
The imported tunnel contains:
The tunnel imports successfully and works correctly.
The issue only affects the GUI editor: after opening the configuration, the Save button becomes disabled because these values are considered invalid.