mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 08:27:27 +08:00
return struct
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user