diff --git a/home.admin/config.scripts/internet.hiddenservice.sh b/home.admin/config.scripts/internet.hiddenservice.sh index b4f384c52..3637093f6 100644 --- a/home.admin/config.scripts/internet.hiddenservice.sh +++ b/home.admin/config.scripts/internet.hiddenservice.sh @@ -1,7 +1,7 @@ #!/bin/bash # $1 is the service name, same as the HiddenServiceDir in torrc # $2 is the port the Hidden Service forwards to (to be used in the Tor browser) -# S3 is the port to be forwarded with the Hidden Service +# $3 is the port to be forwarded with the Hidden Service # command info if [ $# -eq 0 ] || [ "$1" = "-h" ] || [ "$1" = "-help" ]; then @@ -24,7 +24,7 @@ if [ ${#toPort} -eq 0 ]; then exit 1 fi -fromPort="$2" +fromPort="$3" if [ ${#fromPort} -eq 0 ]; then echo "ERROR:the port to forward from is missing" exit 1 @@ -47,4 +47,4 @@ if [ "${runBehindTor}" = "on" ]; then fi else echo "Tor is not active" -fi \ No newline at end of file +fi