Skip to content

Commit 646eb1e

Browse files
committed
lnd: update docs on nodeann addresses retaining
1 parent 141cc57 commit 646eb1e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ type Config struct {
339339
RawRPCListeners []string `long:"rpclisten" description:"Add an interface/port/socket to listen for RPC connections"`
340340
RawRESTListeners []string `long:"restlisten" description:"Add an interface/port/socket to listen for REST connections"`
341341
RawListeners []string `long:"listen" description:"Add an interface/port to listen for peer connections"`
342-
RawExternalIPs []string `long:"externalip" description:"Add an ip:port to the list of local addresses we claim to listen on to peers. If a port is not specified, the default (9735) will be used regardless of other parameters"`
342+
RawExternalIPs []string `long:"externalip" description:"Add an ip:port (local addresses we listen on) to advertise to the network (default port 9735 is used if port is not specified). Note: Removing this option does not clear previously advertised addresses; remove them with 'lncli peers updatenodeannouncement --address_remove=host:port'."`
343343
ExternalHosts []string `long:"externalhosts" description:"Add a hostname:port that should be periodically resolved to announce IPs for. If a port is not specified, the default (9735) will be used."`
344344
RPCListeners []net.Addr
345345
RESTListeners []net.Addr

sample-lnd.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,14 @@
212212
; advertise your node, this value doesn't need to be set. Unless specified
213213
; (with host:port notation), the default port (9735) will be added to the
214214
; address.
215+
;
216+
; NOTE: If you previously set one or more `externalip` entries and later
217+
; remove `externalip` from the config, lnd will continue to advertise the
218+
; last known addresses from the previous run (they are stored with your node
219+
; information). To stop advertising them, remove those addresses explicitly
220+
; using the peers RPC/CLI, for example:
221+
; `lncli peers updatenodeannouncement --address_remove=1.2.3.4:9735`
222+
; A restart is not required, a new node announcement will be broadcasted.
215223
; externalip=
216224
;
217225
; Instead of explicitly stating your external IP address, you can also enable

0 commit comments

Comments
 (0)