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

Fix wireguard config filtering for configs without whitespace. #217

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Fix wireguard config filtering for configs without whitespace. #217

merged 1 commit into from
Apr 12, 2023

Conversation

Douile
Copy link
Contributor

@Douile Douile commented Apr 12, 2023

This fixes #216 by using a split on '=' instead of whitespace to parse keys when filtering Wireguard config keys. I also took the liberty of swapping the denylist to an allowlist of the valid wireguard config keys from the manpage.

This fixes #216 by using a split on '=' instead of whitespace to
parse keys when filtering Wireguard config keys. I also took the liberty
of swapping the denylist to an allowlist of the valid wireguard config
keys from the manpage.
@jamesmcm
Copy link
Owner

Thanks!

@jamesmcm jamesmcm merged commit a566ec5 into jamesmcm:master Apr 12, 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

Successfully merging this pull request may close these issues.

Wireguard filtering doesn't work properly without whitespace
2 participants