1
0
Fork 0
forked from svrjs/svrjs

Don't assign variables to public IP requests

This commit is contained in:
Dorian Niemiec 2024-08-26 07:58:37 +02:00
parent 914b38e0b0
commit 25c784181d

View file

@ -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: "/",