Fix autocert generation

This commit is contained in:
jhernandezb 2018-01-18 10:33:41 -06:00
parent 4db23fae05
commit 546e0bad00
No known key found for this signature in database
GPG key ID: 03F7382902919E8C

View file

@ -584,7 +584,7 @@ func server(c *cli.Context) error {
dir := cacheDir()
os.MkdirAll(dir, 0700)
manager := autocert.Manager{
manager := &autocert.Manager{
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist(address.Host),
Cache: autocert.DirCache(dir),