APPNAME=getipns

This commit is contained in:
fred 2022-11-18 01:00:50 +01:00
parent 1ab351aa21
commit 46e7631d36
1 changed files with 11 additions and 0 deletions

View File

@ -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
##############################################