[GH-ISSUE #34] must ignore comments in wg configs while scanning the qr codes instead of declining the config entirely #22

Open
opened 2026-10-13 21:05:15 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ghost on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/34

so far it doesnt support any configs that got comments in them

[Interface]
# This is a comment
Originally created by @ghost on GitHub (Jun 9, 2025). Original GitHub issue: https://github.com/amnezia-vpn/amneziawg-android/issues/34 so far it doesnt support any configs that got comments in them ``` [Interface] # This is a comment ```
Author
Owner

@ghost commented on GitHub (Jun 10, 2025):

@outspace @pokamest @albexk github.com/amnezia-vpn/amneziawg-android@e71423f46d/tunnel/src/main/java/org/amnezia/awg/config/Interface.java (L87)
github.com/amnezia-vpn/amneziawg-android@e71423f46d/tunnel/src/main/java/org/amnezia/awg/config/Peer.java (L55)
add ignore lines that start with #, for both attributes and "sections", can be simply skipped by if (line.toString().trim().startsWith("#")) continue;, fix it its annoying

<!-- gh-comment-id:2960724319 --> @ghost commented on GitHub (Jun 10, 2025): @outspace @pokamest @albexk https://github.com/amnezia-vpn/amneziawg-android/blob/e71423f46def239f65419980372236a15af90402/tunnel/src/main/java/org/amnezia/awg/config/Interface.java#L87 https://github.com/amnezia-vpn/amneziawg-android/blob/e71423f46def239f65419980372236a15af90402/tunnel/src/main/java/org/amnezia/awg/config/Peer.java#L55 add ignore lines that start with #, for both attributes and "sections", can be simply skipped by `if (line.toString().trim().startsWith("#")) continue;`, fix it its annoying
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-android#22
No description provided.