#129 make auto nat discover not default

This commit is contained in:
rootzoll 2018-10-18 15:39:25 +02:00
parent 696fa5af98
commit f9becbc29b
4 changed files with 13 additions and 3 deletions

View File

@ -40,6 +40,15 @@ if [ ${afterSetupScriptExists} -eq 1 ]; then
sleep 100
fi
################################
# PUBLIC IP
# for LND on startup
################################
printf "PUBLICIP=$(curl -vv ipinfo.io/ip 2> /run/publicip.log)\n" > /run/publicip;
chmod 774 /run/publicip
################################
# HDD CHECK / INIT
# for the very first setup

View File

@ -5,7 +5,7 @@ debuglevel=debug
maxpendingchannels=5
alias=raspiblitz
color=#68F442
nat=true
nat=false
# RPC open to all connections on Port 10009
rpclisten=0.0.0.0:10009

View File

@ -5,7 +5,7 @@ debuglevel=debug
maxpendingchannels=5
alias=raspiblitz
color=#68F442
nat=true
nat=false
# RPC open to all connections on Port 10009
rpclisten=0.0.0.0:10009

View File

@ -9,7 +9,8 @@ After=bitcoind.service
#OnFailure=systemd-sendmail@%n
[Service]
ExecStart=/usr/local/bin/lnd
EnvironmentFile=/run/publicip
ExecStart=/usr/local/bin/lnd --externalip=${PUBLICIP}
PIDFile=/home/bitcoin/.lnd/lnd.pid
User=bitcoin
Group=bitcoin