This commit is contained in:
aler9
2021-12-03 22:56:35 +01:00
parent 41eeaa36e4
commit 73f1c632c5
3 changed files with 97 additions and 46 deletions

View File

@@ -824,6 +824,8 @@ func (c *Client) connOpen() error {
conn := func() net.Conn {
if c.scheme == "rtsps" {
host, _, _ := net.SplitHostPort(c.host)
c.TLSConfig.ServerName = host
return tls.Client(nconn, c.TLSConfig)
}
return nconn