use noop resolver in network by default

This commit is contained in:
Asim Aslam
2020-08-09 22:11:57 +01:00
parent a7c70c66b1
commit 65e6ee8566
4 changed files with 17 additions and 4 deletions

View File

@@ -431,7 +431,7 @@ func (n *mucpNetwork) resolveNodes() ([]string, error) {
}
// sort by lowest priority
if err == nil {
if err == nil && len(records) > 0 {
sort.Slice(records, func(i, j int) bool { return records[i].Priority < records[j].Priority })
}