From 62c5fb29d1a91a2ad475240a7bf7ca487196272d Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 29 Nov 2024 15:28:18 +0100 Subject: [PATCH] switch back to ips --- tests/config/proxy.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/config/proxy.ts b/tests/config/proxy.ts index 99cffa57ac..13c03cccb4 100644 --- a/tests/config/proxy.ts +++ b/tests/config/proxy.ts @@ -63,7 +63,7 @@ export class TestProxy { this._prependHandler('request', (req: IncomingMessage) => { this.requestUrls.push(req.url); const url = new URL(req.url, `http://${req.headers.host}`); - url.host = `localhost:${port}`; + url.host = `127.0.0.1:${port}`; if (options?.prefix) url.pathname = url.pathname.replace(options.prefix, ''); req.url = url.toString(); @@ -74,12 +74,12 @@ export class TestProxy { if (kConnectHostsToIgnore.has(req.url)) return; this.connectHosts.push(req.url); - req.url = `localhost:${port}`; + req.url = `127.0.0.1:${port}`; }); this._prependHandler('upgrade', (req: IncomingMessage) => { this.wsUrls.push(req.url); const url = new URL(req.url, `http://${req.headers.host}`); - url.host = `localhost:${port}`; + url.host = `127.0.0.1:${port}`; if (options?.prefix) url.pathname = url.pathname.replace(options.prefix, ''); req.url = url.toString();