diff options
author | des <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 |
commit | 1804e2a81815566b69c6a54aff89eaf4a57c8e65 (patch) | |
tree | f8c637bb9a7cdda4f389a9f7202ee2a6629e0622 /lib/libfetch/ftp.c | |
parent | 9c1fb038d7d49d0f13914c9cf74abbaf2252f87c (diff) | |
download | FreeBSD-src-1804e2a81815566b69c6a54aff89eaf4a57c8e65.zip FreeBSD-src-1804e2a81815566b69c6a54aff89eaf4a57c8e65.tar.gz |
Support lower-case versions of the proxy environment variables.
PR: bin/25494
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 0be1d0d..713a856 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -875,10 +875,11 @@ _ftp_get_proxy(void) struct url *purl; char *p; - if (((p = getenv("FTP_PROXY")) || (p = getenv("HTTP_PROXY"))) && + if (((p = getenv("FTP_PROXY")) || (p = getenv("ftp_proxy")) || + (p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && *p && (purl = fetchParseURL(p)) != NULL) { if (!*purl->scheme) { - if (getenv("FTP_PROXY")) + if (getenv("FTP_PROXY") || getenv("ftp_proxy")) strcpy(purl->scheme, SCHEME_FTP); else strcpy(purl->scheme, SCHEME_HTTP); |