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

Generated config file is invalid when the AllowedIPs field is left blank #636

Closed
t-aleksander opened this issue May 29, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@t-aleksander
Copy link
Contributor

If the location doesn't have any allowedips set (which is optional), its generated config file (downloadable during the enrollment or from the dashboard) will be impossible to parse by the wg-quick command or the wireguard GUI client.

[#] ip link add lokacja type wireguard
[#] wg setconf lokacja /dev/fd/63
Line unrecognized: `AllowedIPs='
Configuration parsing error
[#] ip link delete dev lokacja

Currently the AllowedIPs line looks like this in such scenario:

AllowedIPs =

Instead, if there are no allowedips specified, it should be empty altogether. The issue doesn't occur when importing the config via the defguard client menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant