mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-13 21:34:42 +00:00
[PR #74] fix: omit empty AWG 3.x ranges from showconf #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-tools#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?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/amneziawg-tools/pull/74
Author: @HeisLuka
Created: 9/14/2026
Status: 🔄 Open
Base:
master← Head:fix/showconf-hide-empty-ranges📝 Commits (1)
005ddd2fix: omit empty AWG 3.x ranges from showconf📊 Changes
1 file changed (+6 additions, -6 deletions)
View changed files
📝
src/showconf.c(+6 -6)📄 Description
Summary
Do not print empty AWG 3.x range parameters from
awg showconf.The kernel can report these attributes with their corresponding
WGDEVICE_HAS_*flags set while the packed range itself is zero.showconfpreviously checked only the flags, so a plain AWG 2.x interface could be serialized with six synthetic AWG 3.x settings such as:Use
u16_range_is_zero()for the six range-valued fields, matching the existing behavior ofawg showand persistent keepalive output.Non-empty ranges are unchanged.
Fixes #61
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.