[GH-ISSUE #61] awg showconf prints AWG 3.0 parameters that were never set #26

Open
opened 2026-10-13 21:02:32 +00:00 by bsakaguchi · 0 comments
Owner

Originally created by @hoaxisr on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/61

On a device with no AWG 3.0 parameters configured, awg showconf emits them all as zero:

ContentPaddingAddition = 0
RekeyAfterTime = 0
RekeyTimeout = 0
RejectAfterTime = 0
KeepaliveTimeout = 0
MaxHandshakeAttempts = 0

awg show already hides empty ranges after c8aaf3d ("fix: silence empty ranges in awg show"), but showconf still prints them. Round tripping a plain AWG 2.0 config through showconf produces something that reads as an AWG 3.0 config, which breaks tools that store, compare or classify configs by their contents.

Omitting a key whose range is zero, the same way awg show does now, would keep the two commands consistent.

Seen with tools v3.0.20260730 against the v3.0.20260731 kernel module.

Originally created by @hoaxisr on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/61 On a device with no AWG 3.0 parameters configured, `awg showconf` emits them all as zero: ``` ContentPaddingAddition = 0 RekeyAfterTime = 0 RekeyTimeout = 0 RejectAfterTime = 0 KeepaliveTimeout = 0 MaxHandshakeAttempts = 0 ``` `awg show` already hides empty ranges after c8aaf3d ("fix: silence empty ranges in awg show"), but showconf still prints them. Round tripping a plain AWG 2.0 config through showconf produces something that reads as an AWG 3.0 config, which breaks tools that store, compare or classify configs by their contents. Omitting a key whose range is zero, the same way `awg show` does now, would keep the two commands consistent. Seen with tools v3.0.20260730 against the v3.0.20260731 kernel module.
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-tools#26
No description provided.