Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wg-meta attributes with no value are not handled correctly #18

Open
sirtoobii opened this issue Mar 24, 2023 · 0 comments
Open

wg-meta attributes with no value are not handled correctly #18

sirtoobii opened this issue Mar 24, 2023 · 0 comments

Comments

@sirtoobii
Copy link
Owner

Consider the following configuration example where #+ is our wg-meta prefix:

[Peer]
PublicKey = WG_0_PEER_A_PUBLIC_KEY
#A normal comment
AllowedIPs = fdc9:281f:04d7:9ee9::1/128
Endpoint = 198.51.100.101:51871
#+dangerous

Which is being parsed as:

WG_0_PEER_A_PUBLIC_KEY => {
'dangerous' => undef
}
@sirtoobii sirtoobii changed the title wg-meta attribute with no value are not handled correctly wg-meta attributes with no value are not handled correctly Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant