[GH-ISSUE #111] H1-H4 validation uses int32 instead of uint32 #75

Open
opened 2026-10-13 21:11:37 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @shah333333 on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-windows-client/issues/111

Environment:

  • Windows 10 x64
  • AmneziaWG for Windows 2.0.1

Issue:
The Save button becomes disabled when H1-H4 values exceed INT32_MAX.

Steps to reproduce:

  1. Create/import a tunnel.

  2. Set:
    H3 = 263187292
    -> Save button is enabled.

  3. 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:

H3 = 263187292
H4 = 380507718

Save button is enabled.

Not working:

H3 = 2631872921
H4 = 3805077187

Save button becomes disabled.

Originally created by @shah333333 on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-windows-client/issues/111 Environment: - Windows 10 x64 - AmneziaWG for Windows 2.0.1 Issue: The Save button becomes disabled when H1-H4 values exceed INT32_MAX. Steps to reproduce: 1. Create/import a tunnel. 2. Set: H3 = 263187292 -> Save button is enabled. 3. 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: ```ini H3 = 263187292 H4 = 380507718 ``` Save button is enabled. Not working: ```ini H3 = 2631872921 H4 = 3805077187 ``` Save button becomes disabled.
Author
Owner

@shah333333 commented on GitHub (Jul 17, 2026):

Additional information:

The imported tunnel contains:

H3 = 2631872921-2631918072
H4 = 3805077187-3805090531

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.

<!-- gh-comment-id:5006383759 --> @shah333333 commented on GitHub (Jul 17, 2026): Additional information: The imported tunnel contains: ```ini H3 = 2631872921-2631918072 H4 = 3805077187-3805090531 ``` 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.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amneziawg-windows-client#75
No description provided.