server: properly use the set of normalized external ips

This commit is contained in:
Olaoluwa Osuntokun 2018-06-27 15:01:53 -07:00 committed by Wilmer Paulino
parent c344a3a642
commit c03f731643
No known key found for this signature in database
GPG Key ID: 6DF57B9F9514972F

@ -404,7 +404,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
return nil, err
}
selfAddrs := make([]net.Addr, 0, len(externalIPs))
for _, ip := range cfg.ExternalIPs {
for _, ip := range externalIPs {
selfAddrs = append(selfAddrs, ip)
}