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

[relay-client] Fix Relay disconnection handling #2680

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Oct 1, 2024

Describe your changes

If it has an active P2P connection meanwhile the Relay connection is broken with the server then we removed the WireGuard peer configuration.

Issue ticket number and link

Checklist

  • 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

If has an active P2P connection meanwhile the Relay connection broken with the server then we removed the WireGuard peer configuration.
Copy link

sonarcloud bot commented Oct 1, 2024

log.Debugf("relay connection is disconnected")

if conn.currentConnPriority == connPriorityRelay {
log.Debugf("clean up WireGuard config")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
log.Debugf("clean up WireGuard config")
log.Debug("clean up WireGuard config")

@mlsmaycon mlsmaycon merged commit ee0ea86 into main Oct 1, 2024
21 checks passed
@mlsmaycon mlsmaycon deleted the relay/fix/disconnection-handling branch October 1, 2024 14:22
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