[5/5] http: Don't use the normal http proxy mechanism for https

Message ID 1321014025-81875-5-git-send-email-martin@martin.st
State Committed
Commit dbc2424baa5aa4c72026d167f0678f2374620f44
Headers show

Commit Message

Martin Storsjö Nov. 11, 2011, 12:20 p.m.
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.
---
 libavformat/http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/libavformat/http.c b/libavformat/http.c
index 48986bc..03a8677 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -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;
     }