Browse Source

obs: Disable ALPN in RemoteTextThread

Richard Stanway 9 years ago
parent
commit
2974fda785
1 changed files with 5 additions and 0 deletions
  1. 5 0
      obs/remote-text.cpp

+ 5 - 0
obs/remote-text.cpp

@@ -71,6 +71,11 @@ void RemoteTextThread::run()
 		curl_easy_setopt(curl.get(), CURLOPT_WRITEDATA,
 				&str);
 
+#if LIBCURL_VERSION_NUM >= 0x072400
+		// A lot of servers don't yet support ALPN
+		curl_easy_setopt(curl.get(), CURLOPT_SSL_ENABLE_ALPN, 0);
+#endif
+
 		if (!postData.empty()) {
 			curl_easy_setopt(curl.get(), CURLOPT_POSTFIELDS,
 					postData.c_str());