CL: do not announce 127.0.0.1 and check in CLCONF

fixes #2634
This commit is contained in:
openoms 2021-10-17 10:13:57 +01:00
parent 46264131c1
commit 2993ad76e8
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 5 additions and 1 deletions

View file

@ -21,6 +21,11 @@ source <(/home/admin/config.scripts/network.aliases.sh getvars cl $2)
# so it tries to make sure the config is in valid shape # so it tries to make sure the config is in valid shape
###################################################################### ######################################################################
# do not announce 127.0.0.1 https://github.com/rootzoll/raspiblitz/issues/2634
if [ $(grep -c "^announce-addr=127.0.0.1" < ${CLCONF}) -gt 0 ];then
sed -i "/^announce-addr=127.0.0.1/d" ${CLCONF}
fi
if [ $(grep -c "^sparko" < ${CLCONF}) -gt 0 ];then if [ $(grep -c "^sparko" < ${CLCONF}) -gt 0 ];then
if [ ! -f /home/bitcoin/${netprefix}cl-plugins-enabled/sparko ]\ if [ ! -f /home/bitcoin/${netprefix}cl-plugins-enabled/sparko ]\
|| [ "$(eval echo \$${netprefix}sparko)" != "on" ]; then || [ "$(eval echo \$${netprefix}sparko)" != "on" ]; then

View file

@ -183,7 +183,6 @@ if [ "$1" = on ]||[ "$1" = update ]||[ "$1" = testPR ];then
echo "# lightningd configuration for ${network} ${CHAIN} echo "# lightningd configuration for ${network} ${CHAIN}
network=${CLNETWORK} network=${CLNETWORK}
announce-addr=127.0.0.1:${portprefix}9736
log-file=cl.log log-file=cl.log
log-level=info log-level=info
plugin-dir=/home/bitcoin/${netprefix}cl-plugins-enabled plugin-dir=/home/bitcoin/${netprefix}cl-plugins-enabled