From c57430937b4d139f02dfaa2ad2e0297d5e70a684 Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 21 Oct 2022 21:09:15 +0200 Subject: [PATCH] This is raocket --- 12345.sh | 1 + templates/index.http | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/12345.sh b/12345.sh index f349ee1b..3934b2d8 100755 --- a/12345.sh +++ b/12345.sh @@ -39,6 +39,7 @@ while true; do # REPLACE myIP in http response template sed "s~127.0.0.1:12345~$myIP:$PORT~g" $HOME/.zen/Astroport.ONE/templates/index.http > ~/.zen/tmp/myIP.http.${MOATS} + sed -i "s~127.0.0.1~$myIP~g" ~/.zen/tmp/myIP.http.${MOATS} ## LAUNCHING URL=$(cat $HOME/.zen/tmp/myIP.http.${MOATS} | nc -l -p 1234 -q 1 | grep '^GET' | cut -d ' ' -f2 | cut -d '?' -f2) diff --git a/templates/index.http b/templates/index.http index ae0a1c67..a6ce89ee 100644 --- a/templates/index.http +++ b/templates/index.http @@ -6,12 +6,16 @@ Content-Type: text/html; charset=UTF-8 +

ASTROPORT

-

Astronaute nous créons votre TW ....

-
- -
+

Astronaute Contact

+