Browse code

http: Don't use the normal http proxy mechanism for https

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>

Martin Storsjö authored on 2011/11/10 21:57:15
Showing 1 changed files
... ...
@@ -112,6 +112,7 @@ static int http_open_cnx(URLContext *h)
112 112
 
113 113
     if (!strcmp(proto, "https")) {
114 114
         lower_proto = "tls";
115
+        use_proxy = 0;
115 116
         if (port < 0)
116 117
             port = 443;
117 118
     }