fix: update autotls example. (#965)
This commit is contained in:
parent
92ddc7d240
commit
f0b54a3023
@ -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))
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user