fix: update autotls example. (#965)

This commit is contained in:
Bo-Yi Wu 2017-07-03 00:55:21 -05:00 committed by GitHub
parent 92ddc7d240
commit f0b54a3023
2 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@ func main() {
Cache: autocert.DirCache("/var/www/.cache"), Cache: autocert.DirCache("/var/www/.cache"),
} }
log.Fatal(autotls.RunWithManager(r, m)) log.Fatal(autotls.RunWithManager(r, &m))
} }
``` ```

View File

@ -22,5 +22,5 @@ func main() {
Cache: autocert.DirCache("/var/www/.cache"), Cache: autocert.DirCache("/var/www/.cache"),
} }
log.Fatal(autotls.RunWithManager(r, m)) log.Fatal(autotls.RunWithManager(r, &m))
} }