From 1aa295e77b2407328d5ecf310be99f325bfa3e5a Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 6 Nov 2022 00:13:32 +0100 Subject: [PATCH] TUBE is round robin DNS address --- 12345.sh | 3 ++- ASTROBOT/PLAYER.refresh.sh | 5 ++++- A_boostrap_nodes.txt | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/12345.sh b/12345.sh index 081945e7..45a1f6e1 100755 --- a/12345.sh +++ b/12345.sh @@ -367,7 +367,8 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh || TWIP=$myIP # LOCKED TW BECOMING ACTIVE GATEWAY - if [[ $OLDIP == "_SECRET_" || "$TWIP" == "$myIP" ]]; then + TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3) + if [[ $OLDIP == "_SECRET_" || $OLDIP == "$TUBE" || "$TWIP" == "$myIP" ]]; then echo "_SECRET_ TW PUSHING TW" ## BECOMING OFFICIAL BECOME R/W TW sed -i "s~$OLDIP~${myIP}~g" ~/.zen/tmp/coucou/${MOATS}.astroindex.html diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index b55d1fde..c523b64c 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -96,8 +96,11 @@ isLAN=$(echo $myIP | grep -E "/(^127\.)|(^192\.168\.)|(^10\.)|(^172\.1[6-9]\.)|( ############################################################## #################### - # LOCKING TW : myIP becomes _SECRET_ + # REMOVE OFFCIAL : myIP becomes _SECRET_ sed -i "s~${myIP}~_SECRET_~g" ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html + TUBE=$(head -n 2 ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | tail -n 1 | cut -d ' ' -f 3) + sed -i "s~_SECRET_~$TUBE~g" ~/.zen/tmp/${IPFSNODEID}/${PLAYER}/index.html + #################### ## ANY CHANGES ? diff --git a/A_boostrap_nodes.txt b/A_boostrap_nodes.txt index 41025fae..6f91e392 100644 --- a/A_boostrap_nodes.txt +++ b/A_boostrap_nodes.txt @@ -1,5 +1,5 @@ # CONTAINS Address of 1st Bootstrap Stations (24/24 Public IP) - DO NOT EDIT MANUALY - -# http://libra.copylaradio.com:8080 +# http://libra.copylaradio.com:8080 cancer.copylaradio.com /ip4/149.102.158.67/udp/4001/quic/p2p/12D3KooWL2FcDJ41U9SyLuvDmA5qGzyoaj2RoEHiJPpCvY8jvx9u # cancer.astroport.com /ip4/185.202.238.69/tcp/4001/p2p/12D3KooWSnxRBuoeCZGdXBbSKiW8qM4HxLp3RLypW9dg82o41ZqM