mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
Merge pull request #1206 from frennkie/remove-tlsextraip
remove tlsextraip=0.0.0.0
This commit is contained in:
commit
c88155c6bb
3 changed files with 1 additions and 9 deletions
|
@ -13,7 +13,6 @@ rpclisten=0.0.0.0:10009
|
||||||
restlisten=0.0.0.0:8080
|
restlisten=0.0.0.0:8080
|
||||||
# Domain, could use https://freedns.afraid.org
|
# Domain, could use https://freedns.afraid.org
|
||||||
#tlsextradomain=lightning.yourhost.com
|
#tlsextradomain=lightning.yourhost.com
|
||||||
tlsextraip=0.0.0.0
|
|
||||||
|
|
||||||
[Bitcoin]
|
[Bitcoin]
|
||||||
bitcoin.active=1
|
bitcoin.active=1
|
||||||
|
|
|
@ -14,7 +14,6 @@ restlisten=0.0.0.0:8080
|
||||||
|
|
||||||
# Domain, could use https://freedns.afraid.org
|
# Domain, could use https://freedns.afraid.org
|
||||||
#tlsextradomain=lightning.yourhost.com
|
#tlsextradomain=lightning.yourhost.com
|
||||||
tlsextraip=0.0.0.0
|
|
||||||
|
|
||||||
[Litecoin]
|
[Litecoin]
|
||||||
litecoin.active=1
|
litecoin.active=1
|
||||||
|
|
|
@ -87,21 +87,15 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
|
|
||||||
# make sure config values are uncommented
|
# make sure config values are uncommented
|
||||||
sudo sed -i "s/^#restlisten=.*/restlisten=/g" /mnt/hdd/lnd/lnd.conf
|
sudo sed -i "s/^#restlisten=.*/restlisten=/g" /mnt/hdd/lnd/lnd.conf
|
||||||
sudo sed -i "s/^#tlsextraip=.*/tlsextraip=/g" /mnt/hdd/lnd/lnd.conf
|
|
||||||
|
|
||||||
# make sure config values exits
|
# make sure config values exits
|
||||||
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'restlisten=')
|
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'restlisten=')
|
||||||
if [ ${exists} -eq 0 ]; then
|
if [ ${exists} -eq 0 ]; then
|
||||||
sudo sed -n -i 'p;4a restlisten=' /mnt/hdd/lnd/lnd.conf
|
sudo sed -n -i 'p;4a restlisten=' /mnt/hdd/lnd/lnd.conf
|
||||||
fi
|
fi
|
||||||
exists=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep -c 'tlsextraip')
|
|
||||||
if [ ${exists} -eq 0 ]; then
|
|
||||||
sudo sed -n -i 'p;5a tlsextraip=' /mnt/hdd/lnd/lnd.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
# set needed config values
|
# set needed config values
|
||||||
sudo sed -i "s/^restlisten=.*/restlisten=0.0.0.0:8080/g" /mnt/hdd/lnd/lnd.conf
|
sudo sed -i "s/^restlisten=.*/restlisten=0.0.0.0:8080/g" /mnt/hdd/lnd/lnd.conf
|
||||||
sudo sed -i "s/^tlsextraip=.*/tlsextraip=0.0.0.0/g" /mnt/hdd/lnd/lnd.conf
|
|
||||||
|
|
||||||
# refresh TLS cert (if lnd.conf was changed)
|
# refresh TLS cert (if lnd.conf was changed)
|
||||||
md5HashAfter=$(sudo shasum -a 256 /mnt/hdd/lnd/lnd.conf)
|
md5HashAfter=$(sudo shasum -a 256 /mnt/hdd/lnd/lnd.conf)
|
||||||
|
|
Loading…
Add table
Reference in a new issue