announcing IP address of lightning node is now optional

This commit is contained in:
SKP
2019-07-03 21:09:22 +02:00
committed by kexkey
parent f53009be35
commit 99825f0a15
2 changed files with 11 additions and 1 deletions

View File

@@ -48,6 +48,13 @@ module.exports = {
*/
{
when: featureCondition,
type: 'confirm',
name: 'lightning_announce',
default: utils.getDefault( 'lightning_announce' ),
message: prefix()+'Do you want to announce your lightning node?'+utils.getHelp('lightning_announce'),
},
{
when: (props) => { return featureCondition(props) && props.lightning_announce },
type: 'input',
name: 'lightning_external_ip',
default: utils.getDefault( 'lightning_external_ip' ),

View File

@@ -15,4 +15,7 @@ bitcoin-rpcuser=<%= bitcoin_rpcuser %>
bitcoin-rpcpassword=<%= bitcoin_rpcpassword %>
addr=0.0.0.0:9735
announce-addr=<%= lightning_external_ip %>:9735
<% if( locals.lightning_external_ip ) { %>
announce-addr=<%= locals.lightning_external_ip %>:9735
<% } %>