mirror of
https://github.com/amnezia-vpn/amneziawg-tools.git
synced 2026-10-13 21:34:42 +00:00
[PR #59] [CLOSED] config: allow empty I2-I5 values #65
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#65
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/59
Author: @frimo-dev
Created: 7/11/2026
Status: ❌ Closed
Base:
master← Head:fix-empty-i-values📝 Commits (1)
e67954cconfig: allow empty values📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/config.c(+1 -1)📄 Description
This fixes parsing of empty config values such as
I2=.Currently
get_value()returns NULL when the input line length is equalto the key length. For a line like
I2=, this causes the parser to rejectthe line with:
Empty
I2-I5values can appear in AmneziaWG configs, so the parser shouldonly reject lines shorter than the requested key.
Related to #35, but fixes a narrower case: empty I2-I5 values.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.