diff --git a/12345.sh b/12345.sh index 909cb434..67f904cc 100755 --- a/12345.sh +++ b/12345.sh @@ -99,8 +99,8 @@ while true; do # REPLACE myHOST in http response template (fixing next API meeting point) echo "$HTTPCORS" > ~/.zen/tmp/coucou/${MOATS}.myHOST.http myHtml >> ~/.zen/tmp/coucou/${MOATS}.myHOST.http - sed -i -e "s~\"${myIPFS}/\"~\"$(myIpfs)\"~g" \ - -e "s~http://${myHOST}:12345~http://${myHOST}:${PORT}~g" \ + sed -i -e "s~\"http://127.0.0.1:1234/\"~\"$(myIpfs)\"~g" \ + -e "s~http://${myHOST}:12345~http://${myIP}:${PORT}~g" \ ~/.zen/tmp/coucou/${MOATS}.myHOST.http ############################################################################ diff --git a/tools/my.sh b/tools/my.sh index bb7e99e7..9935a1b1 100755 --- a/tools/my.sh +++ b/tools/my.sh @@ -123,7 +123,7 @@ myIp() { myIpfs() { [ -n "$(myIpfsHash)" ] \ - && local myIpfs="${myIPFS}/ipfs/$(myIpfsHash)" \ + && local myIpfs="${myIPFSGW}/ipfs/$(myIpfsHash)" \ && echo "$myIpfs" }