[GH-ISSUE #36] Regression in wg-json #14

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

Originally created by @vnxme on GitHub (Feb 9, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/36

This is to report 5e882890fb introduced in #30 has a bug in contrib/json/wg-json: the I1-I5 fields accept <b ...> and <r ...> as valid values, and these strings are designed to contain a space after <b or <r which brakes reading variables by the script with the read -r ... command.

Originally created by @vnxme on GitHub (Feb 9, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-tools/issues/36 This is to report 5e882890fbca2316f8ca40e992789d24f67f0118 introduced in #30 has a bug in [contrib/json/wg-json](https://github.com/amnezia-vpn/amneziawg-tools/blob/master/contrib/json/wg-json): the I1-I5 fields accept `<b ...>` and `<r ...>` as valid values, and these strings are [designed to contain a space](https://docs.amnezia.org/documentation/amnezia-wg/#how-it-works) after `<b` or `<r` which brakes [reading variables](https://github.com/amnezia-vpn/amneziawg-tools/blob/5c6ffd6168f7c69199200a91803fa02e1b8c4152/contrib/json/wg-json#L14) by the script with the `read -r ...` command.
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#14
No description provided.