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.