return struct

This commit is contained in:
Matthew R. Kasun
2022-04-13 18:22:03 -04:00
parent 3e6a9be9ba
commit 4525698f87
2 changed files with 7 additions and 13 deletions

View File

@@ -44,7 +44,11 @@ func Daemon() error {
serverSet := make(map[string]struct{})
// == initial pull of all networks ==
networks, _ := ncutils.GetSystemNetworks()
if len(networks) == 0 {
return errors.New("no networks")
}
for _, network := range networks {
logger.Log(3, "initializing network", network)
cfg := config.ClientConfig{}
cfg.Network = network
cfg.ReadConfig()