From ff5bd31ff87b4b5a10cf8e69cd67976b10693dd6 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Thu, 4 Apr 2019 03:47:31 +0100 Subject: [PATCH] fix standard port --- home.admin/97addMobileWalletLNDconnect.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home.admin/97addMobileWalletLNDconnect.sh b/home.admin/97addMobileWalletLNDconnect.sh index 2bd7a38..71c7245 100755 --- a/home.admin/97addMobileWalletLNDconnect.sh +++ b/home.admin/97addMobileWalletLNDconnect.sh @@ -86,9 +86,9 @@ if [ ${#sshtunnel} -gt 0 ]; then if [ ${isForwarded} -gt 0 ]; then local=0 host=$(echo $sshtunnel | cut -d '@' -f2 | cut -d ' ' -f1) - if [ "${servicePort}" = "1009" ]; then + if [ "${servicePort}" == "10009" ]; then port=$(echo $sshtunnel | awk '{split($0,a,"10009<"); print a[2]}' | cut -d ' ' -f1 | sed 's/[^0-9]//g') - elif [ "${servicePort}" = "8080" ]; then + elif [ "${servicePort}" == "8080" ]; then port=$(echo $sshtunnel | awk '{split($0,a,"8080<"); print a[2]}' | cut -d ' ' -f1 | sed 's/[^0-9]//g') fi echo "port ${servicePort} forwarding from port ${port} from server ${host}"