Просмотр исходного кода

no_proxy and ftp. Closes: #89671
Author: jgg
Date: 2001-03-24 22:34:55 GMT
no_proxy and ftp. Closes: #89671

Arch Librarian лет назад: 22
Родитель
Сommit
fc31c31caf
2 измененных файлов с 3 добавлено и 8 удалено
  1. 1 0
      debian/changelog
  2. 2 8
      methods/ftp.cc

+ 1 - 0
debian/changelog

@@ -9,6 +9,7 @@ apt (0.5.4) unstable; urgency=low
   * More patches from Alfredo for Vendors and more SHA-1 stuff
   * Fix for AJ's 'desire to remove perl-5.005' and possibly other
     similar situations. Closes: #56708, #59432
+  * no_proxy and ftp. Closes: #89671
   
  -- Jason Gunthorpe <jgg@debian.org>  Thu,  8 Mar 2001 22:48:06 -0700
 

+ 2 - 8
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";