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
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user