diff --git a/format/rtspv2/client.go b/format/rtspv2/client.go index 497e28a..370efaa 100644 --- a/format/rtspv2/client.go +++ b/format/rtspv2/client.go @@ -128,7 +128,6 @@ func Dial(options RTSPClientOptions) (*RTSPClient, error) { return nil, err } if client.pURL.Scheme == "rtsps" { - tlsConn := tls.Client(conn, &tls.Config{InsecureSkipVerify: options.InsecureSkipVerify, ServerName: client.pURL.Hostname()}) err = tlsConn.Handshake() if err != nil {