libp2p / go-libp2p-webrtc-direct

A libp2p transport that enables browser-to-server, and server-to-server, direct communication over WebRTC without requiring signalling servers
MIT License
82 stars 18 forks source link

use the manet dial args in order to figure out the listener #32

Closed tobowers closed 5 years ago

tobowers commented 5 years ago

If you take a look at https://github.com/multiformats/go-multiaddr-net/blob/master/net.go#L271-L291 it does some manipulation on the Dial args before giving them directly to net.Listen .

I noticed this bug because I was using a /ip4/0.0.0.0/0 style address and it was coming back as ip6 and then getting dropped as a maddr on linux. Switching to these args lets me actually use that 0 style addresses.