Fix panic for nil slice

This commit is contained in:
Asim Aslam 2019-08-29 15:09:01 +01:00
parent 6eecb199e9
commit 3d03fe4076

View File

@ -140,8 +140,8 @@ func (n *network) resolveNodes() ([]string, error) {
// collect network node addresses
var nodes []string
for i, record := range records {
nodes[i] = record.Address
for _, record := range records {
nodes = append(nodes, record.Address)
nodeMap[record.Address] = true
}