From 46e7631d36bf6583499fc0ce1ae5a1c0a384da9d Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 18 Nov 2022 01:00:50 +0100 Subject: [PATCH] APPNAME=getipns --- 12345.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/12345.sh b/12345.sh index 49d36527..8cc9f761 100755 --- a/12345.sh +++ b/12345.sh @@ -369,6 +369,17 @@ echo "" > ~/.zen/tmp/.ipfsgw.bad.twt # TODO move in 20h12.sh continue fi +############################################## +# GETIPNS +############################################## + if [[ $APPNAME == "getipns" ]]; then + echo "$HTTPCORS /ipns/${ASTRONAUTENS}"| nc -l -p ${PORT} -q 1 > /dev/null 2>&1 & + end=`date +%s` + echo $APPNAME" (☓‿‿☓) Execution time was "`expr $end - $start` seconds. + continue + fi + + ############################################## # DEFAULT (NO REDIRECT DONE YET) CHECK OFFICIAL GATEWAY ##############################################