Skip to content

Commit

Permalink
added ips on main
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Jan 23, 2024
1 parent 53a688f commit f38712e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,17 @@ if (network == "mockmain") {
}
};
// zetaclientIPs = ["50.16.78.24", "44.218.42.109","44.216.230.163"];
zetaclientIPs = [
"34.225.36.174",
"52.45.59.77",
"52.35.128.130",
"35.87.167.186",
"54.212.38.135",
"150.136.225.11",
"129.146.167.182",
"208.91.106.108",
"15.235.10.84"
];

} else { // default to athens3
bitcoinChainID = 18332;
Expand Down
5 changes: 5 additions & 0 deletions zetaclients.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ async function zetaclients_versions() {

let lastscannedPromises = [];
for (let i = 0; i < IPs.length; i++) {
const res = await fetch(`${corsProxyURL}/http://${IPs[i]}:8123/ping`);
if (!res.ok) {
console.log(`IP or 8123 port not availableError: ${IPs[i]} ${res.status}` );
continue;
}
fetch(`${corsProxyURL}/http://${IPs[i]}:8123/ip`, {method: 'GET'})
.then(response => {
if (response.ok) {
Expand Down

0 comments on commit f38712e

Please sign in to comment.