Fix panic for nil slice
This commit is contained in:
parent
6eecb199e9
commit
3d03fe4076
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user