You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Make sure that the http_proxy environment variable starts with http://
If not, then ignore it's value. Originally committed as revision 628 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -65,7 +65,7 @@ static int http_open(URLContext *h, const char *uri, int flags)
|
|||||||
h->priv_data = s;
|
h->priv_data = s;
|
||||||
|
|
||||||
proxy_path = getenv("http_proxy");
|
proxy_path = getenv("http_proxy");
|
||||||
use_proxy = (proxy_path != NULL) && !getenv("no_proxy");
|
use_proxy = (proxy_path != NULL) && !getenv("no_proxy") && (strncmp(proxy_path, "http://", 7) == 0);
|
||||||
|
|
||||||
/* fill the dest addr */
|
/* fill the dest addr */
|
||||||
redo:
|
redo:
|
||||||
|
Reference in New Issue
Block a user