Bugfix and performance improvements for proxy.pac