Restore IPv6 support for API and RTSP #532

This commit is contained in:
Alexey Khit
2023-07-20 21:51:55 +03:00
parent 6c0918662e
commit 189f142fae
6 changed files with 18 additions and 15 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func (c *Client) Dial() (err error) {
return
}
if c.conn, err = net.DialTimeout("tcp4", u.Host, Timeout); err != nil {
if c.conn, err = net.DialTimeout("tcp", u.Host, Timeout); err != nil {
return
}