Reconfigure Environment configuration loader as well

This commit is contained in:
NI
2020-02-23 22:03:31 +08:00
parent 91eb8fcc35
commit b2210ce2b6

View File

@@ -123,7 +123,7 @@ func Enviro() Loader {
}
}
return enviroTypeName, Configuration{
return enviroTypeName, r(Configuration{
HostName: cfg.HostName,
SharedKey: cfg.SharedKey,
DialTimeout: time.Duration(cfg.DialTimeout) * time.Second,
@@ -133,6 +133,6 @@ func Enviro() Loader {
Servers: []Server{cfgSer.build()},
Presets: presets,
OnlyAllowPresetRemotes: cfg.OnlyAllowPresetRemotes,
}, nil
}), nil
}
}