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

Bug#283718: no_proxy variable not honored by apt-transport-https



On 2014-09-09 17:46, Michael Vogt wrote:
On Tue, Sep 09, 2014 at 04:27:32PM +0200, Raoul Bhatia wrote:
I'm seeing this issue with correctly working no_proxy settings via
/etc/environment and/or /root/.bashrc,
which are correctly working for e.g. w3m but are not honored via
apt-transport-https.

Thanks for your bugreport.

[..]
"apt-get update -o Debug::Acquire::Https=true"
still shows that APT is trying to use the proxy.

Could you please test the attached patch? It seems like the proxy
setting is not properly reset for libcurl.


Not sure if i am testing it right.

I tried to re-build apt-transport-https on my Ubuntu (!) workstation
and applied the patch before "dpkg-buildpackage -uc -us".

I then installed the package,
but the behavior did not change.

Is there any easy possibility to debug this,
e.g. via adding some debug output or using strace/ltrace?

Moreover, upon checking curl.h from libcurl4-gnutls-dev:amd64 7.35.0-1ubuntu2
i see:

/* Comma separated list of hostnames defining no-proxy zones. These should
     match both hostnames directly, and hostnames within a domain. For
     example, local.com will match local.com and www.local.com, but NOT
     notlocal.com or www.notlocal.com. For compatibility with other
implementations of this, .local.com will be considered to be the same as
     local.com. A single * is the only valid wildcard, and effectively
     disables the use of proxy. */
  CINIT(NOPROXY, OBJECTPOINT, 177),

Wouldn't this be easier to simply handover "no_proxy" to curl this way?

Cheers,
Raoul
--
DI (FH) Raoul Bhatia M.Sc.     |   E-Mail.  raoul@bhatia.at
Software Development and       |   Web.     http://raoul.bhatia.at/
System Administration          |   Tel.     +43 699 10132530


Reply to: