Browse Source

fix lnd connect

master
Christian Rotzoll 6 years ago
parent
commit
8188d8de0f
  1. 6
      home.admin/97addMobileWalletLNDconnect.sh

6
home.admin/97addMobileWalletLNDconnect.sh

@ -45,7 +45,7 @@ if [ ${goInstalled} -eq 0 ];then
sleep 4
exit 1
fi
clear
correctGoVersion=$(go version | grep -c "go${goVersion}")
if [ ${correctGoVersion} -eq 0 ]; then
echo "WARNING: You work with a untested version of GO - should be ${goVersion} .. trying to continue"
@ -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}" = "1009" ]; 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}"

Loading…
Cancel
Save