[PR #59] [CLOSED] config: allow empty I2-I5 values #65

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

📋 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)

  • e67954c config: 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 equal
to the key length. For a line like I2=, this causes the parser to reject
the line with:

Line unrecognized: 'I2='

Empty I2-I5 values can appear in AmneziaWG configs, so the parser should
only 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.

## 📋 Pull Request Information **Original PR:** https://github.com/amnezia-vpn/amneziawg-tools/pull/59 **Author:** [@frimo-dev](https://github.com/frimo-dev) **Created:** 7/11/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix-empty-i-values` --- ### 📝 Commits (1) - [`e67954c`](https://github.com/amnezia-vpn/amneziawg-tools/commit/e67954cf5de9c72247b476f1eedd4f5c8c7e8737) config: allow empty values ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/config.c` (+1 -1) </details> ### 📄 Description This fixes parsing of empty config values such as `I2=`. Currently `get_value()` returns NULL when the input line length is equal to the key length. For a line like `I2=`, this causes the parser to reject the line with: Line unrecognized: 'I2=' Empty `I2-I5` values can appear in AmneziaWG configs, so the parser should only reject lines shorter than the requested key. Related to #35, but fixes a narrower case: empty I2-I5 values. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-13 21:02:56 +00:00
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#65
No description provided.