This patch is being used on pfSense to fix pkg when proxy is configured and many users reported it works as expected.
Retry with proxy settings when HTTP server returns 407 (HTTP_NEED_PROXY_AUTH)
PR: 220468
Submitted by: Egil Hasting <egil.hasting@higen.org>
Approved by:
Sponsored by: Rubicon Communications, LLC ("Netgate")