client improve a comment in updateNetworks

This commit is contained in:
Lang Martin 2019-05-10 11:25:04 -04:00
parent c32cce51f0
commit f6bc45dd23
1 changed files with 1 additions and 1 deletions

View File

@ -1299,10 +1299,10 @@ func updateNetworks(ns structs.Networks, up structs.Networks, c *config.Config)
upd = append(upd, n)
}
}
// If updates, use them. Otherwise, ns contains the configured interfaces
if len(upd) > 0 {
ns = upd
}
// Otherwise, ns has the old data
}
// ns is set, apply the config NetworkSpeed to all