Merge pull request #639 from mslacken/DefaultNetwork

use default not override for single network entry
This commit is contained in:
Christian Goll
2023-02-03 11:54:01 +01:00
committed by GitHub
2 changed files with 12 additions and 1 deletions

View File

@@ -138,7 +138,7 @@ func (config *NodeYaml) FindAllNodes() ([]NodeInfo, error) {
if len(n.NetDevs) == 1 {
// only way to get the key
for key := range node.NetDevs {
n.NetDevs[key].Primary.SetB(true)
n.NetDevs[key].Primary.SetDefaultB(true)
}
}
// backward compatibility