aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/js/arching-kaos-tools.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js
index 8918f11..310ca62 100644
--- a/src/js/arching-kaos-tools.js
+++ b/src/js/arching-kaos-tools.js
@@ -570,9 +570,11 @@ function initCrawlSchain(json)
}
}
-function checkPeers(json){
- for ( var peer = 0; peer < json; peer++){
- archingKaosLog("Checking peer: "+json[peer].cjdns.ip)
+function checkPeers(json)
+{
+ for ( var peer = 0; peer < json.length; peer++)
+ {
+ archingKaosLog("Checking peer: "+json[peer].cjdns.ip);
checkIfZchainAndProceed(json[peer].node_info, [json[peer].node_info.gpg]);
}
}