[[ ! $myIP ]] && myIP="127.0.1.1"

This commit is contained in:
fred 2022-10-22 00:56:03 +02:00
parent 0449b679ee
commit 4825ed6f3e
2 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ ncrunning=$(ps auxf --sort=+utime | grep -w 'nc -l -p 1234' | grep -v -E 'color=
[[ $ncrunning ]] && echo "already running" && exit 1
myIP=$(hostname -I | awk '{print $1}' | head -n 1)
[[ ! $myIP ]] && myIP="127.0.1.1"
# Check if Astroport Station already has a "captain"
echo "Register and Connect Astronaut with http://$myIP:1234/?email=&ph1=&ph2="

View File

@ -72,7 +72,7 @@
<center>
<h6>
<a href="_IPNSL_"> _\/_ </a> powered by <a href="https://astroport.com"><span>"</span>Astroport<span>"</span></a>
<a href="_IPNSL_"> _\/_ </a> powered by <a href="http://astroport.com"><span>"</span>Astroport<span>"</span></a>
</h6>
</center>
</main>