Browse Source

lnd port update

sshtunnel
Christian Rotzoll 6 years ago
parent
commit
336fe31fd0
  1. 2
      home.admin/_bootstrap.provision.sh
  2. 2
      home.admin/config.scripts/internet.sshtunnel.py

2
home.admin/_bootstrap.provision.sh

@ -165,7 +165,9 @@ fi
# CUSTOM PORT # CUSTOM PORT
echo "Provisioning LND Port" >> ${logFile} echo "Provisioning LND Port" >> ${logFile}
if [ ${#lndPort} -eq 0 ]; then
lndPort=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep "^listen=*" | cut -f2 -d':') lndPort=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep "^listen=*" | cut -f2 -d':')
fi
if [ ${#lndPort} -gt 0 ]; then if [ ${#lndPort} -gt 0 ]; then
if [ "${lndPort}" != "9735" ]; then if [ "${lndPort}" != "9735" ]; then
echo "User is running custom LND port: ${lndPort}" >> ${logFile} echo "User is running custom LND port: ${lndPort}" >> ${logFile}

2
home.admin/config.scripts/internet.sshtunnel.py

@ -103,7 +103,7 @@ if sys.argv[1] == "on":
forwardingLND = True forwardingLND = True
if port_internal != port_external: if port_internal != port_external:
print("FAIL: When tunneling your local LND port '%s' it needs to be the same on the external server, but is '%s'" % (LNDPORT,port_external)) print("FAIL: When tunneling your local LND port '%s' it needs to be the same on the external server, but is '%s'" % (LNDPORT,port_external))
print("Try again by using the same port. If you cant change the external port, change local LND port with: /home/config.scripts/lnd.setport.sh") print("Try again by using the same port. If you cant change the external port, change local LND port with: /home/admin/config.scripts/lnd.setport.sh")
sys.exit(1) sys.exit(1)
ssh_ports = ssh_ports + "\"%s\" " % (sys.argv[i]) ssh_ports = ssh_ports + "\"%s\" " % (sys.argv[i])

Loading…
Cancel
Save