mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-08 10:45:34 +08:00
Initialize empty server config map (#566)
This commit is contained in:
@@ -288,6 +288,9 @@ func loadClientConfig() (*ClientConfig, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to unmarshal %s : %s", path, err)
|
||||
}
|
||||
if cfg.Servers == nil {
|
||||
cfg.Servers = map[string]ServerConfig{}
|
||||
}
|
||||
return &cfg, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user