diff --git a/www/LOVELand/index.html b/www/LOVELand/index.html index a9282a0..e04a1e9 100644 --- a/www/LOVELand/index.html +++ b/www/LOVELand/index.html @@ -126,7 +126,7 @@ g.type='text/javascript'; g.async=true; g.defer=true; g.src='https://piwik.p2p.l
Application également disponible en téléchargement -

Ajoute une image et indique tes coordonnées géographiques, nous pourons alors te prévenir lorqu'un ami ou une ressource libre est proche +

Ajoute une image et indique tes coordonnées géographiques, nous pourrons alors te prévenir lorqu'un ami ou une ressource libre est proche

Rejoindre le réseau Cesium !

diff --git a/zen/tools/duniter_getnode.sh b/zen/tools/duniter_getnode.sh index 5f8a929..44abf77 100755 --- a/zen/tools/duniter_getnode.sh +++ b/zen/tools/duniter_getnode.sh @@ -110,10 +110,18 @@ do done longchain=$(ls -S $DIR/chains/ | head -n 1) -cp $DIR/chains/$longchain $DIR/good.nodes.txt # WRITE OUT shuffle Duniter Node Sync with longest chain -result=$(shuf -n 1 $DIR/good.nodes.txt) -[[ ! $result ]] && result="duniter-g1.p2p.legal:443" +cp $DIR/chains/$longchain $DIR/good.nodes.txt + +## TEST if server is really running Duniter +Dtest=""; loop=0 +while [[ $Dtest != "duniter" ]]; do + result=$(shuf -n 1 $DIR/good.nodes.txt) + Dtest=$(curl -s https://$result | jq -r .duniter.software) + ((loop++)) + [[ $loop -eq 4 ]] && result="duniter-g1.p2p.legal:443" && break +done + echo "$result" > /tmp/zen/current.duniter echo $result