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

Bug#759264: apt: Please help with PAC support - proxy autoconfiguration files



On Mon, Aug 25, 2014 at 06:18:22PM +0100, Dimitri John Ledkov wrote:
> Package: apt
> Version: 1.0.4ubuntu6
> Severity: wishlist

Thanks for your bugreport.
 
> It would be useful to support PAC (proxy autoconfiguration files) with
> apt. Specifically, PAC files are simple javascript files that given a
> URL and HOST output a proxy setting. This can be trivially hooked up
> with Acquire::http::Proxy-Auto-Detect, however Proxy-Auto-Detect is
> called only once, instead of per-host, hence one cannot easily mix
> repositories that require different proxies or proxy only for some
> repositories. Extending Proxy-Auto-Detect to pass host parameter and
> calling that for each host/repository would be beneficial to integrate
> (optionally) pac file support with apt. (Similar to how deb squid proxy
> support is done).

Attached is a (untested) patch that make the Proxy-Auto-Detect a
per-host thing. If this looks vaguely like what you need we need to
add a testcase before it can go in.

Cheers,
 Michael


Reply to: