forked from svrjs/svrjs
Don't assign variables to public IP requests
This commit is contained in:
parent
914b38e0b0
commit
25c784181d
1 changed files with 2 additions and 2 deletions
|
@ -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: "/",
|
||||
|
|
Reference in a new issue