InsecureSkipVerify

This commit is contained in:
deepch 2022-02-08 15:30:08 +03:00
parent 505988a89c
commit 6ba34dc2bf

View File

@ -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 {