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

swarm: add mock net.PacketConn for testing

Open sukunrt opened this issue 2 years ago • 0 comments

This uses https://github.com/tailscale/tailscale/tree/main/tstest/natlab to provide a mock net.PacketConn. This allows us to fake quic addresses on nodes to test for address discovery. This can also be used to test nat traversal.

Update 2023-09-25: We do need this but I'll pick this up some time next month. Converting it to draft.

sukunrt avatar Jul 26 '23 17:07 sukunrt