Limit dial multiaddr

Hi! Is there a way to filter out dial addrs with more than IP ranges? I want my node to listen on websocket but only dial TCP.

Hey @tobowers, sorry for the slow turnaround. What implementation are you using? We are currently busy implementing a Connection Gater component in go-libp2p. Have a look at:

And linked PRs and issues.

Thanks! We use both, but the question is for go-libp2p so thanks!