watchtower: one append instead of appends in a loop
This commit is contained in:
parent
ebf058a2a5
commit
f3f482d9f9
@ -212,9 +212,7 @@ func (w *Standalone) ListeningAddrs() []net.Addr {
|
|||||||
// NOTE: Part of the watchtowerrpc.WatchtowerBackend interface.
|
// NOTE: Part of the watchtowerrpc.WatchtowerBackend interface.
|
||||||
func (w *Standalone) ExternalIPs() []net.Addr {
|
func (w *Standalone) ExternalIPs() []net.Addr {
|
||||||
addrs := make([]net.Addr, 0, len(w.cfg.ExternalIPs))
|
addrs := make([]net.Addr, 0, len(w.cfg.ExternalIPs))
|
||||||
for _, addr := range w.cfg.ExternalIPs {
|
addrs = append(addrs, w.cfg.ExternalIPs...)
|
||||||
addrs = append(addrs, addr)
|
|
||||||
}
|
|
||||||
|
|
||||||
return addrs
|
return addrs
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user