Skip to content
Snippets Groups Projects
Commit 108a109c authored by Chris Trimble's avatar Chris Trimble Committed by Chris Trimble
Browse files

Google Compute Metadata hostname fix

From within containers (or possibly other scenarios), the metadata
hostname might not resolve on GCP. Setting this to the full path
guarantees it will resolve.
parent 498e2b35
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ typedef enum { ...@@ -71,7 +71,7 @@ typedef enum {
#define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60 #define GRPC_SECURE_TOKEN_REFRESH_THRESHOLD_SECS 60
#define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata" #define GRPC_COMPUTE_ENGINE_METADATA_HOST "metadata.google.internal"
#define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \ #define GRPC_COMPUTE_ENGINE_METADATA_TOKEN_PATH \
"/computeMetadata/v1/instance/service-accounts/default/token" "/computeMetadata/v1/instance/service-accounts/default/token"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment