From e1d4449b3dddd544f844f9e2752c6748ec8964cb Mon Sep 17 00:00:00 2001 From: Akilan Date: Sun, 19 Feb 2023 23:52:26 +0000 Subject: [PATCH] added tls --- run.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run.sh b/run.sh index 195270d..5b8f367 100644 --- a/run.sh +++ b/run.sh @@ -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