Browse Source

fix: update autotls example. (#965)

Bo-Yi Wu 8 years ago
parent
commit
f0b54a3023
2 changed files with 2 additions and 2 deletions
  1. 1 1
      README.md
  2. 1 1
      examples/auto-tls/example2.go

+ 1 - 1
README.md

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

+ 1 - 1
examples/auto-tls/example2.go

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