diff --git a/config/config.go b/config/config.go index 80bf8b49..d25b1afb 100644 --- a/config/config.go +++ b/config/config.go @@ -15,9 +15,9 @@ type Config struct { HexIP bool VerifyCertificates bool `mapstructure:"verify_certificates"` Headers map[string]string - Defaults *Defaults - HTTPS *HTTPS - LetsEncrypt *LetsEncrypt + Defaults Defaults + HTTPS HTTPS + LetsEncrypt LetsEncrypt } type Defaults struct { @@ -36,7 +36,7 @@ type HTTPS struct { Port string Cert string Key string - HSTS *HSTS + HSTS HSTS } type HSTS struct { diff --git a/server/index_data.go b/server/index_data.go index 63452311..56ea68ca 100644 --- a/server/index_data.go +++ b/server/index_data.go @@ -47,7 +47,7 @@ func (d *Dispatch) getIndexData(r *http.Request, path string, state *State) *ind cfg := d.Config() data := indexData{ - Defaults: cfg.Defaults, + Defaults: &cfg.Defaults, HexIP: cfg.HexIP, Version: dispatchVersion{ Tag: version.Tag,