Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit d04207b

Browse files
author
Benjamin E. Coe
authored
fix: IP address takes 15 seconds to timeout, vs., metadata returning immediately (#235)
1 parent 93497c8 commit d04207b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {request} from 'gaxios';
99
import {OutgoingHttpHeaders} from 'http';
1010
const jsonBigint = require('json-bigint');
1111

12-
export const HOST_ADDRESS = 'http://169.254.169.254';
12+
export const HOST_ADDRESS = 'http://metadata.google.internal.';
1313
export const BASE_PATH = '/computeMetadata/v1';
1414
export const BASE_URL = HOST_ADDRESS + BASE_PATH;
1515
export const HEADER_NAME = 'Metadata-Flavor';

0 commit comments

Comments
 (0)