mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
fix lnd connect
This commit is contained in:
@@ -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}"
|
||||
|
Reference in New Issue
Block a user