From 1f1cc0430d4ef7e34b55dc0a530f5d51b85a3a22 Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 23 Aug 2022 18:02:45 +0200 Subject: [PATCH] Because of Smartphone bad NS resolve. Using myIP to contact local "Astroport" Station --- G1VOEUX.sh | 2 +- tools/VISA.new.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/G1VOEUX.sh b/G1VOEUX.sh index b80c5e83..efa87798 100755 --- a/G1VOEUX.sh +++ b/G1VOEUX.sh @@ -110,7 +110,7 @@ do --output ~/.zen/tmp --render "$:/core/save/all" "newindex.html" "text/plain" [[ -f ~/.zen/tmp/newindex.html ]] && cp ~/.zen/tmp/newindex.html ~/.zen/game/world/$WISHKEY/index.html - ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://'$myIP':8080", "http://127.0.0.1:8080", "http://astroport", "https://astroport.com", "https://qo-op.com", "https://tube.copylaradio.com" ]' +ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["http://'$myIP':8080", "http://127.0.0.1:8080", "http://astroport", "https://astroport.com", "https://qo-op.com", "https://tube.copylaradio.com", "http://'$(hostname)'.local:8080" ]' ## RESTART IPFS !? echo "# CREATION QR CODE" diff --git a/tools/VISA.new.sh b/tools/VISA.new.sh index 628ba7af..2270c185 100755 --- a/tools/VISA.new.sh +++ b/tools/VISA.new.sh @@ -149,6 +149,7 @@ G1PUB=$(cat /tmp/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2) sed -i "s~_G1PUB_~${G1PUB}~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html sed -i "s~_QRSEC_~${PASsec}~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html + sed -i "s~G1Voeu~G1Visa~g" ~/.zen/game/players/$PLAYER/ipfs/.$PeerID/moa/index.html ASTRONAUTENS=$(ipfs key list -l | grep -w "${PLAYER}" | cut -d ' ' -f 1) # La Clef IPNS porte comme nom G1PUB. @@ -229,7 +230,7 @@ qrencode -s 12 -o "$HOME/.zen/game/players/$PLAYER/QR.ASTRONAUTENS.png" "http:// echo; echo "Création de votre clef et QR codes de votre réseau Astroport Ŋ1"; sleep 1 echo; echo "*** Espace Astronaute Activé : ~/.zen/game/players/$PLAYER/"; sleep 1 -echo; echo "*** Votre TW Ŋ7 : $PLAYER"; echo "http://127.0.0.1:8080/ipns/$ASTRONAUTENS"; sleep 2 +echo; echo "*** Votre TW Ŋ7 : $PLAYER"; echo "http://$myIP:8080/ipns/$ASTRONAUTENS"; sleep 2 # PASS CRYPTING KEY echo; echo "Sécurisation de vos clefs par chiffrage SSL... "; sleep 1