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 // collect network node addresses
var nodes []string var nodes []string
for i, record := range records { for _, record := range records {
nodes[i] = record.Address nodes = append(nodes, record.Address)
nodeMap[record.Address] = true nodeMap[record.Address] = true
} }