From 4a5c6ee0aa2f30be8cb2a9833a1279ebd8045f86 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 21 Oct 2022 18:36:53 +0200 Subject: [PATCH] salt / pepper into IPNS --- 12345.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/12345.sh b/12345.sh index 361dd3a4..37d27e23 100755 --- a/12345.sh +++ b/12345.sh @@ -32,6 +32,7 @@ function urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } PORT=12345 while true; do + echo "ŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊŊ" echo "SERVING.............................. 1234 PORT" echo "NEW LANDING PAGE http://$myIP:$PORT" @@ -40,6 +41,7 @@ while true; do ## LAUNCHING URL=$(cat $HOME/.zen/tmp/myIP.http.${MOATS} | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2) + [[ $URL == "" ]] && echo "PING. NO PARAM" && continue echo "==================================================" echo "GET RECEPTION : $URL" @@ -73,6 +75,8 @@ while true; do ## CHECK IF ALREADY EXISTING PLAYER # IF NOT = BATCH CREATE TW + [ $PORT -lt 12399 ] && PORT=$((PORT+1)) || PORT=12345 + continue fi