Comment 3 for bug 46052

Revision history for this message
Colin Watson (cjwatson) wrote :

The error message is bizarre: it's "Unable to connect to ftp:", with a double space between "to" and "ftp:"; looking at apt's source, this means that it thinks the host name is empty.

Michael, do you have any idea why this might be happening? I did notice one thing while comparing methods/ftp.cc and methods/http.cc, in the proxy setup code. methods/http.cc has:

   if (Proxy.empty() == true || Proxy.Host.empty() == true)

... while methods/ftp.cc has:

   if (Proxy.empty() == true)

Proxy is a URI in both cases. Shouldn't ftp.cc be changed to check that the proxy host is non-empty too?