requests http:// to https://

This commit is contained in:
sairajzero 2022-02-19 00:32:14 +05:30
parent 456c85c805
commit 04ccf3d762

View File

@ -7,7 +7,7 @@ function exchangeAPI(api, options) {
let curPos = exchangeAPI.curPos || 0;
if (curPos >= nodeList.length)
return resolve('No Nodes online');
let url = "http://" + nodeURL[nodeList[curPos]];
let url = "https://" + nodeURL[nodeList[curPos]];
(options ? fetch(url + api, options) : fetch(url + api))
.then(result => resolve(result)).catch(error => {
console.warn(nodeList[curPos], 'is offline');