Fix crash detection defaults

This commit is contained in:
Dane Everitt 2019-12-16 21:23:57 -08:00
parent dd4a920d62
commit 3fd5b1e92b
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -210,7 +210,12 @@ func (s *Server) Init() {
// for a server. // for a server.
func FromConfiguration(data []byte, cfg *config.SystemConfiguration) (*Server, error) { func FromConfiguration(data []byte, cfg *config.SystemConfiguration) (*Server, error) {
s := new(Server) s := new(Server)
defaults.SetDefaults(s) defaults.SetDefaults(s)
s.CrashDetection = CrashDetection{
Enabled: true,
}
s.Init() s.Init()
if err := yaml.Unmarshal(data, s); err != nil { if err := yaml.Unmarshal(data, s); err != nil {