mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-14 12:42:48 +02:00
watchtower: one append instead of appends in a loop
This commit is contained in:
parent
ebf058a2a5
commit
f3f482d9f9
1 changed files with 1 additions and 3 deletions
|
|
@ -212,9 +212,7 @@ func (w *Standalone) ListeningAddrs() []net.Addr {
|
|||
// NOTE: Part of the watchtowerrpc.WatchtowerBackend interface.
|
||||
func (w *Standalone) ExternalIPs() []net.Addr {
|
||||
addrs := make([]net.Addr, 0, len(w.cfg.ExternalIPs))
|
||||
for _, addr := range w.cfg.ExternalIPs {
|
||||
addrs = append(addrs, addr)
|
||||
}
|
||||
addrs = append(addrs, w.cfg.ExternalIPs...)
|
||||
|
||||
return addrs
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue