http: Don't use the normal http proxy mechanism for https
authorMartin Storsjö <martin@martin.st>
Thu, 10 Nov 2011 12:57:15 +0000 (14:57 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 18 Nov 2011 08:59:53 +0000 (10:59 +0200)
The tls protocol handles connections via proxies internally.

With TLS/SSL, the peer verification requires that the client
speaks directly with the server, since the proxy doesn't have
the remote server's private key.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/http.c

index 45253d4..63cfecd 100644 (file)
@@ -112,6 +112,7 @@ static int http_open_cnx(URLContext *h)
 
     if (!strcmp(proto, "https")) {
         lower_proto = "tls";
+        use_proxy = 0;
         if (port < 0)
             port = 443;
     }