server: properly use the set of normalized external ips

This commit is contained in:
Olaoluwa Osuntokun authored and Wilmer Paulino committed 2018-06-27 16:43:38 -07:00
1 parent c344a3a642
commit c03f731643
1 file changed
+1 -1
+1 -1
View File
@@ -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)
}