-
Notifications
You must be signed in to change notification settings - Fork 999
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(autonat): reject inbound dial request from peer if its not connected #5597
Conversation
92cd0cf
to
40b55f4
Compare
40b55f4
to
e749ffe
Compare
@dariusc93 thanks for the review. Addressed the comments. |
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.
LGTM thanks! Will wait for Darius give it a look again
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.
Can you also update the workspace Cargo.toml
? Besides that everything LGTM :)
e749ffe
to
665d6a6
Compare
Thanks @Eligioo! |
@dariusc93 fixed the workspace Might be a small improvement to inform external contributors to also bump the various |
Thanks! We do try to if its needed and CI will inform us if they need to be updated as well :) |
…ted (libp2p#5597) ## Description As discovered and described in the issue below, there are situations where an incoming AutoNAT dial can come from a non-connected peer. However `resolve_inbound_request` expects that this situation cannot occur. This PR adds a check upfront and refuses the incoming dial when no connected peer is found. Fixes libp2p#5570. ## Change checklist - [x] I have performed a self-review of my own code - [x] I have made corresponding changes to the documentation - [ ] I have added tests that prove my fix is effective or that my feature works - [x] A changelog entry has been made in the appropriate crates Co-authored-by: João Oliveira <[email protected]>
@jxs are you maybe able to patch release this? |
Description
As discovered and described in the issue below, there are situations where an incoming AutoNAT dial can come from a non-connected peer. However
resolve_inbound_request
expects that this situation cannot occur. This PR adds a check upfront and refuses the incoming dial when no connected peer is found.Fixes #5570.
Change checklist