diff --git a/source/dub/internal/utils.d b/source/dub/internal/utils.d index df9d5c0..d23a683 100644 --- a/source/dub/internal/utils.d +++ b/source/dub/internal/utils.d @@ -143,6 +143,9 @@ static if( is(typeof(&conn.verifyPeer)) ) conn.verifyPeer = false; + auto proxy = environment.get("http_proxy", null); + if (proxy.length) conn.proxy = proxy; + // convert version string to valid SemVer format auto verstr = dubVersion; if (verstr.startsWith("v")) verstr = verstr[1 .. $];