CC: | brett.t.warden [...] intel.com |
Subject: | Attempts to translate JavaScript to Perl instead of running with libjs |
HTTP::ProxyAutoConfig attempts to translate the received PAC JavaScript
into Perl, but can only handle simple cases. Instead, it can use the
JavaScript module to execute the PAC natively in an embedded JavaScript
context, which is safer and more reliable.
The attached patch implements the change to use the JavaScript module,
and also adds a few other improvements, such as using LWP::Simple to
retrieve the PAC, cleaned up logic for fallback to *_proxy environment
variables, etc.
Disclosure: This patch has been approved for public release by Intel, on
whose time I wrote it.
Subject: | ProxyAutoConfig.patch |
Message body is not shown because it is too large.