Commit dbc2424b authored by Martin Storsjö's avatar Martin Storsjö

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: default avatarMartin Storsjö <martin@martin.st>
parent 2565dbeb
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment