diff --git a/12345.sh b/12345.sh index 7bad9756..5b408f18 100755 --- a/12345.sh +++ b/12345.sh @@ -48,11 +48,11 @@ while true; do ## BARE CONTACT if [[ $URL == "/" ]]; then echo "NO PARAM - Launching login page" - echo "HTTP/1.1 200 Everything Is Just Fine + echo "HTTP/1.1 200 OK Server: Astroport Content-Type: text/html; charset=UTF-8 " > ~/.zen/tmp/index.redirect.${MOATS} -cat $HOME/.zen/Astroport.ONE/templates/instascan.html >> ~/.zen/tmp/index.redirect.${MOATS} +sed "s~127.0.0.1~$myIP~g" $HOME/.zen/Astroport.ONE/templates/instascan.html >> ~/.zen/tmp/index.redirect.${MOATS} cat ~/.zen/tmp/index.redirect.${MOATS} | nc -l -p ${PORT} -q 1 & continue @@ -103,7 +103,7 @@ cat $HOME/.zen/Astroport.ONE/templates/instascan.html >> ~/.zen/tmp/index.redire cat ~/.zen/tmp/messout.json >> ~/.zen/tmp/mess.$MOATS.json echo ']' >> ~/.zen/tmp/mess.$MOATS.json - echo "HTTP/1.1 200 Everything Is Just Fine + echo "HTTP/1.1 200 OK Server: Astroport Content-Type: text/html; charset=UTF-8 " > ~/.zen/tmp/index.redirect.${MOATS} diff --git a/templates/index.http b/templates/index.http index 0c4396a3..443cc876 100644 --- a/templates/index.http +++ b/templates/index.http @@ -1,4 +1,4 @@ -HTTP/1.1 200 Everything Is Just Fine +HTTP/1.1 200 OK Server: Astroport Content-Type: text/html; charset=UTF-8 diff --git a/templates/index.redirect b/templates/index.redirect index 4f93d2fb..2facd6e3 100644 --- a/templates/index.redirect +++ b/templates/index.redirect @@ -1,4 +1,4 @@ -HTTP/1.1 200 Everything Is Just Fine +HTTP/1.1 200 OK Server: Astroport Content-Type: text/html; charset=UTF-8