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 duplicated ip suggestions #505

Conversation

angiglesias
Copy link

When a Wireguard server interface has two addresses on the same subnet, the IP suggestions API call gives duplicated addresses.

Test escenario:

  • Server interface with addresses: [10.1.0.1/24, 10.1.0.2/24]
  • Suggestions API provides 10.1.0.3/24 and 10.1.0.3/24 as suggestions.

Signed-off-by: Angel Iglesias <[email protected]>
Use Go 1.21+ stdlib's package slices to filter duplicated suggestions

Signed-off-by: Angel Iglesias <[email protected]>
@0xCA
Copy link
Contributor

0xCA commented Dec 27, 2023

Added a fix for this in #481

@ngoduykhanh
Copy link
Owner

Thanks for the PR. The patch was applied in #481. I will take care of upgrading versions in another PR.

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.

3 participants