-
Notifications
You must be signed in to change notification settings - Fork 961
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(webrtc): Don't emit addresses from other interfaces #3142
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch and thanks for the upgrade to version 3!
let if_watcher = match self.if_watcher.as_mut() { | ||
Some(w) => w, | ||
None => return Poll::Pending, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once we move to Rust 1.65 this can become nicer :-)
let Some(if_watcher) = self.if_watcher.as_mut() else { return Poll::Pending };
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, looking forward to this, I just didn't want to bump it yet. At least not until we have #3090 where we will start to properly verify our MSRV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @thomaseizinger!
Description
Previously, we would always run
IfWatcher
, even if we were only listening on a specific interface. This patch fixes this behaviour and aligns it with howlibp2p-quic
operates.Notes
cc @melekes
Links to any relevant issues
Open Questions
Change checklist