Skip to content

Commit 68f7760

Browse files
committed
Only use CURLOPT_HTTP09_ALLOWED if libcurl is >= 7.66.0 (fixes meetecho#2307)
1 parent ed283d9 commit 68f7760

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/janus_streaming.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6330,8 +6330,10 @@ static int janus_streaming_rtsp_connect_to_server(janus_streaming_mountpoint *mp
63306330
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 5L);
63316331
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 0L);
63326332
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
6333+
#if CURL_AT_LEAST_VERSION(7, 66, 0)
63336334
curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_RTSP);
63346335
curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, 1L);
6336+
#endif
63356337
/* Any authentication to take into account? */
63366338
if(source->rtsp_username && source->rtsp_password) {
63376339
/* Point out that digest authentication is only available is libcurl >= 7.45.0 */

0 commit comments

Comments
 (0)