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

Autonat protocol #739

Merged
merged 22 commits into from
Aug 23, 2022
Merged

Autonat protocol #739

merged 22 commits into from
Aug 23, 2022

Conversation

lchenut
Copy link
Collaborator

@lchenut lchenut commented Jul 8, 2022

Implementation of the AutoNAT Protocol

@mxinden
Copy link

mxinden commented Jul 11, 2022

Really cool to see this happening! Let me know in case there are any questions in regards to the specification.

Also //CC @elenaf9 who implemented AutoNAT in rust-libp2p libp2p/rust-libp2p#2262

Copy link

@elenaf9 elenaf9 left a comment

Choose a reason for hiding this comment

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

Very cool!

libp2p/protocols/autonat.nim Outdated Show resolved Hide resolved
libp2p/dialer.nim Outdated Show resolved Hide resolved
@Menduist
Copy link
Contributor

@lchenut I just pushed a commit which extracts the conn manager tracking from dialAndUpgrade, you should now be able to use dialAndUpgrade in canDial

libp2p/dialer.nim Outdated Show resolved Hide resolved
@Menduist
Copy link
Contributor

Ok, last detail before my approval, we should use a semaphore to limit the number of concurrent dial backs to avoid attacks

1 max seems like a sane default

@Menduist Menduist changed the title Autonat Autonat protocol Aug 1, 2022
libp2p/multiaddress.nim Outdated Show resolved Hide resolved
Menduist
Menduist previously approved these changes Aug 1, 2022
Menduist
Menduist previously approved these changes Aug 3, 2022
Menduist
Menduist previously approved these changes Aug 3, 2022
@lchenut lchenut merged commit 2332813 into unstable Aug 23, 2022
@lchenut lchenut deleted the autonat branch August 23, 2022 15:49
@Menduist Menduist mentioned this pull request Dec 21, 2022
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.

4 participants