From 6e17246306e8adc867d6d51b27959c065522614b Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 25 Oct 2022 14:37:40 +0200 Subject: [PATCH] TWIP=$myIP --- 12345.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/12345.sh b/12345.sh index 08096251..c79be3cf 100755 --- a/12345.sh +++ b/12345.sh @@ -148,6 +148,7 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi ## ELSE IPNS TW REDIRECT if [[ ! -f ~/.zen/tmp/123/${MOATS}.index.redirect ]]; then + TWIP=$myIP # OFFICIAL Gateway ( increase waiting time ) - MORE SECURE if [[ $TYPE="official" ]]; then ipfs --timeout 3s cat /ipns/$GNS > ~/.zen/tmp/123/${MOATS}.astroindex.html @@ -159,7 +160,6 @@ cat ~/.zen/tmp/123/${MOATS}.messaging.json >> ~/.zen/tmp/123/${MOATS}.index.redi [[ $OLDIP != $myIP ]] && TWIP=$OLDIP else echo "TRY OFFICIAL : http://$myIP:1234/?salt=$SALT&pepper=$PEPPER&official=on" - TWIP=$myIP fi sed "s~_TWLINK_~http://$TWIP:8080/ipns/$GNS~g" ~/.zen/Astroport.ONE/templates/index.redirect > ~/.zen/tmp/123/${MOATS}.index.redirect fi