[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#557085: apt-transport-https: uses http config rather than https



Package: apt-transport-https
Version: 0.7.24

Using apt-cacher-ng I'd like to use a proxy for all repositories
except for https (which apt-cacher-ng does not support):

Acquire::http::Proxy "http://192.168.100.4:3142";;
Acquire::https::Proxy "DIRECT";
Acquire::https::Proxy::example.com "DIRECT";

However this doesn't work - seems to bypass the proxy, but then try
proxying direct:

~$ sudo apt-get update
0% [Working]* About to connect() to proxy 192.168.100.4 port 3142 (#0)
*   Trying 192.168.100.4... * connected
* Connected to 192.168.100.4 (192.168.100.4) port 3142 (#0)
* Establish HTTP proxy tunnel to example.com:443
* Server auth using Basic with user 'testuser'
> CONNECT example.com:443 HTTP/1.1
Host: example.com:443
User-Agent: Debian APT-CURL/1.0 (0.7.24)
Proxy-Connection: Keep-Alive
Cache-Control: max-age=0

* Proxy CONNECT aborted
* Closing connection #0
* About to connect() to proxy 192.168.100.4 port 3142 (#0)
Ign https://example.com hardy Release.gpg
2% [Waiting for headers] [Waiting for headers] [Waiting for headers]
[Waiting f* connected
* Connected to 192.168.100.4 (192.168.100.4) port 3142 (#0)
* Establish HTTP proxy tunnel to example.com:443
* Server auth using Basic with user 'testuser'
> CONNECT example.com:443 HTTP/1.1
Host: example.com:443
User-Agent: Debian APT-CURL/1.0 (0.7.24)
Proxy-Connection: Keep-Alive
Cache-Control: max-age=0

* Proxy CONNECT aborted


Unsetting the Acquire::http::Proxy line or adding
Acquire::http:Proxy::example.com DIRECT works, however this then turns
proxying for http too :-(

Adrian
-- 
bitcube.co.uk - Linux infrastructure consultancy
Puppet, Debian, Red Hat, Ubuntu, CentOS, ...



Reply to: