Browse Source

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>
tags/n0.9
Martin Storsjö 14 years ago
parent
commit
dbc2424baa
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/http.c

+ 1
- 0
libavformat/http.c View 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;
}


Loading…
Cancel
Save