diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 04:45:55 +0000 |
commit | 4cee73c80f52cef57f3e95357ada6ea352be14e2 (patch) | |
tree | 4c6d3d0aa47837865bf2b8797e59ac5c4824cd99 /lib/libfetch/ftp.c | |
parent | f227364a17f1426b7e026a42c67e419fcef67b06 (diff) |
Notes
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 0be1d0d65ed6..713a85658e4d 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); |