diff --git a/net.go b/net.go index 98795aa..a52972a 100644 --- a/net.go +++ b/net.go @@ -117,6 +117,8 @@ func (d *Dialer) DialContext(ctx context.Context, remote ma.Multiaddr) (Conn, er if err != nil { return nil, err } + default: + return nil, fmt.Errorf("unrecognized network: %s", rnet) } // get local address (pre-specified or assigned within net.Conn)