mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
Merge pull request #11056 from romain-neil/s3-allow-use-of-proxy
Configure aws s3 lib to use system defined proxy, if existent
This commit is contained in:
commit
fd4b17ab2c
@ -132,6 +132,7 @@ ref<Aws::Client::ClientConfiguration> S3Helper::makeConfig(
|
|||||||
{
|
{
|
||||||
initAWS();
|
initAWS();
|
||||||
auto res = make_ref<Aws::Client::ClientConfiguration>();
|
auto res = make_ref<Aws::Client::ClientConfiguration>();
|
||||||
|
res->allowSystemProxy = true;
|
||||||
res->region = region;
|
res->region = region;
|
||||||
if (!scheme.empty()) {
|
if (!scheme.empty()) {
|
||||||
res->scheme = Aws::Http::SchemeMapper::FromString(scheme.c_str());
|
res->scheme = Aws::Http::SchemeMapper::FromString(scheme.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user