Skip to content

Commit

Permalink
Merge e18ce35 into 0fc5a8e
Browse files Browse the repository at this point in the history
  • Loading branch information
joohoi committed Aug 12, 2018
2 parents 0fc5a8e + e18ce35 commit fa87ca1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util.go
Expand Up @@ -49,6 +49,12 @@ func prepareConfig(conf DNSConfig) (DNSConfig, error) {
if conf.Database.Connection == "" {
return conf, errors.New("missing database configuration option \"connection\"")
}

// Default values for options added to config to keep backwards compatibility with old config
if conf.API.ACMECacheDir == "" {
conf.API.ACMECacheDir = "api-certs"
}

return conf, nil
}

Expand Down

0 comments on commit fa87ca1

Please sign in to comment.