From 6ba34dc2bf0c10d48b4bc2d73c61ff2412e6a2b0 Mon Sep 17 00:00:00 2001 From: deepch Date: Tue, 8 Feb 2022 15:30:08 +0300 Subject: [PATCH] InsecureSkipVerify --- format/rtspv2/client.go | 1 - 1 file changed, 1 deletion(-) 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 {