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 removeAllowedIP #1913

Merged
merged 1 commit into from
May 6, 2024
Merged

Conversation

hurricanehrndz
Copy link
Contributor

Current implementation of removeAllowedIP recreates the wg iface, killing all open ports and connections. This is due to that "lines" is the complete output of get from wg-usp and not the specific interface which changes should be applied to.

Describe your changes

Refactor removeallowedip to be similar to addallowedip.

Issue ticket number and link

fixes #1912

Checklist

  • [ x] Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

Current implementation of removeAllowedIP recreates the wg iface,
killing all open ports and connections. This is due to that "lines" is
the complete output of `get` from wg-usp and not the specific interface
which changes should be applied to.
@lixmal lixmal merged commit 961d919 into netbirdio:main May 6, 2024
16 checks passed
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.

Userspace implementation of RemoveAllowedIP recreates wireguard iface
3 participants