From eacf85cccf08b6c68c4eacef9818b151ccdb5b96 Mon Sep 17 00:00:00 2001 From: ADITYA YADAV <162803219+adityx-reposit@users.noreply.github.com> Date: Wed, 21 Jan 2026 00:25:21 +0530 Subject: [PATCH] Add localhost to private IP ranges Now the localhost is checked inside the PRIVATE_IP_RANGES directly and will not be treated as a public address --- packages/core/src/utils/fetch.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/utils/fetch.ts b/packages/core/src/utils/fetch.ts index fa969ae..354aa46 100644 --- a/packages/core/src/utils/fetch.ts +++ b/packages/core/src/utils/fetch.ts @@ -8,6 +8,7 @@ import { getErrorMessage, isNodeError } from './errors.js'; import { URL } from 'node:url'; const PRIVATE_IP_RANGES = [ + /^localhost$/i, /^10\./, /^127\./, /^172\.(1[6-9]|2[0-9]|3[0-1])\./,