Stop using pointers for nested config structs, closes #41
This commit is contained in:
parent
540efa03c4
commit
855f4d3e64
2 changed files with 5 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue