fix: update autotls example.

This commit is contained in:
Bo-Yi Wu 2017-07-03 13:49:22 +08:00
parent 92ddc7d240
commit 49c3d597ac
No known key found for this signature in database
GPG Key ID: 0F84B2110C500B1F
2 changed files with 2 additions and 2 deletions

View File

@ -910,7 +910,7 @@ func main() {
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"),
}
log.Fatal(autotls.RunWithManager(r, m))
log.Fatal(autotls.RunWithManager(r, &m))
}