From 58da8aedeb7c76ef835139bc86c6f18e08568281 Mon Sep 17 00:00:00 2001 From: openoms <43343391+openoms@users.noreply.github.com> Date: Mon, 16 Dec 2019 18:15:01 +0000 Subject: [PATCH] internet.hiddenservice: make fromPort be the 3rd parameter --- home.admin/config.scripts/internet.hiddenservice.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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