mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:50:05 +00:00
Disable HTTP request for region
This commit is contained in:
parent
e69f9a8008
commit
17ebfd609d
4 changed files with 52 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include <scwx/provider/aws_nexrad_data_provider.hpp>
|
||||
#include <scwx/util/environment.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
#include <scwx/util/map.hpp>
|
||||
#include <scwx/util/time.hpp>
|
||||
|
|
@ -51,6 +52,9 @@ public:
|
|||
lastModified_ {},
|
||||
updatePeriod_ {}
|
||||
{
|
||||
// Disable HTTP request for region
|
||||
util::SetEnvironment("AWS_EC2_METADATA_DISABLED", "true");
|
||||
|
||||
Aws::Client::ClientConfiguration config;
|
||||
config.region = region_;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue