server: properly use the set of normalized external ips
This commit is contained in:
parent
c344a3a642
commit
c03f731643
@ -404,7 +404,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
selfAddrs := make([]net.Addr, 0, len(externalIPs))
|
selfAddrs := make([]net.Addr, 0, len(externalIPs))
|
||||||
for _, ip := range cfg.ExternalIPs {
|
for _, ip := range externalIPs {
|
||||||
selfAddrs = append(selfAddrs, ip)
|
selfAddrs = append(selfAddrs, ip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user