nim-libp2p icon indicating copy to clipboard operation
nim-libp2p copied to clipboard

Autonat protocol

Open lchenut opened this issue 1 year ago • 3 comments

Implementation of the AutoNAT Protocol

lchenut avatar Jul 08 '22 15:07 lchenut

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 https://github.com/libp2p/rust-libp2p/pull/2262/

mxinden avatar Jul 11 '22 02:07 mxinden

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

Menduist avatar Jul 29 '22 15:07 Menduist

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 avatar Jul 29 '22 16:07 Menduist