go-libp2p
go-libp2p copied to clipboard
swarm: add mock net.PacketConn for testing
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.