summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:57:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:57:23 +0000
commitfc31c31caf8c658ebe5e0e10465d86cfa9128757 (patch)
treec0ee3a38bb46c75ee004f4d6f5ab9b0b5eb1e239 /methods/ftp.cc
parenta6bfe58397c488da3b4fff94b27f80e6b3dbdab2 (diff)
no_proxy and ftp. Closes: #89671
Author: jgg Date: 2001-03-24 22:34:55 GMT no_proxy and ftp. Closes: #89671
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index a3a7cd08a..4f9410bfc 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: ftp.cc,v 1.25 2001/03/13 06:51:46 jgg Exp $
+// $Id: ftp.cc,v 1.26 2001/03/24 22:34:55 jgg Exp $
/* ######################################################################
FTP Aquire Method - This is the FTP aquire method for APT.
@@ -1079,13 +1079,6 @@ int main(int argc,const char *argv[])
{
URI Proxy = string(getenv("ftp_proxy"));
- // Parse no_proxy, a , separated list of domains
- if (getenv("no_proxy") != 0)
- {
- if (CheckDomainList(Proxy.Host,getenv("no_proxy")) == true)
- Proxy.Access = "";
- }
-
// Run the HTTP method
if (Proxy.Access == "http")
{
@@ -1093,6 +1086,7 @@ int main(int argc,const char *argv[])
char S[300];
snprintf(S,sizeof(S),"http_proxy=%s",getenv("ftp_proxy"));
putenv(S);
+ putenv("no_proxy=");
// Run the http method
string Path = flNotFile(argv[0]) + "/http";