From 25c784181d11933cb83ff68c25f62adb13eed7d1 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 26 Aug 2024 07:58:37 +0200 Subject: [PATCH] Don't assign variables to public IP requests --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 40cfe55..df540b5 100644 --- a/src/index.js +++ b/src/index.js @@ -522,7 +522,7 @@ function doIpRequest(isHTTPS, options) { } if (host != "[offline]" || ifaceEx) { - const ipRequest = doIpRequest(crypto.__disabled__ === undefined, { + doIpRequest(crypto.__disabled__ === undefined, { host: "api64.ipify.org", port: crypto.__disabled__ !== undefined ? 80 : 443, path: "/", @@ -533,7 +533,7 @@ if (host != "[offline]" || ifaceEx) { }); if (crypto.__disabled__ === undefined) { - const ipRequest2 = doIpRequest(true, { + doIpRequest(true, { host: "api.seeip.org", port: 443, path: "/",