added tls

This commit is contained in:
2023-02-19 23:52:26 +00:00
parent 4d1766e1cf
commit e1d4449b3d

6
run.sh
View File

@@ -1,5 +1,5 @@
# Starts server and runs it silently (i.e no output in the terminal)
./remotegameplay -addr ${1} -port ${2} > /dev/null 2>&1 &
./remotegameplay -tls -addr ${1} -port ${2} > /dev/null 2>&1 &
# Starts chromium browser and runs it silently (i.e no output in the terminal)
./remotegameplay -headless -addr ${1} -port ${2} > /dev/null 2>&1 &
# Lets the script sleep for 2 seconds
@@ -15,9 +15,9 @@ roomID=$(echo "$roomID" | tr -d '"')
# Checks if the IP address is a IPV6 or IPV4 address
if [ "$1" != "${1#*[0-9].[0-9]}" ]; then
echo "http://"${1}":${2}/?roomID="${roomID}
echo "https://"${1}":${2}/?roomID="${roomID}
elif [ "$1" != "${1#*:[0-9a-fA-F]}" ]; then
echo "http://["${1}"]:${2}/?roomID="${roomID}
echo "https://["${1}"]:${2}/?roomID="${roomID}
else
echo "Unrecognized IP format '$1'"
fi