send our errors to _, fix typo
This commit is contained in:
parent
3b69e3f9bb
commit
5d9191f2fa
14
main.go
14
main.go
@ -52,13 +52,13 @@ func init() {
|
|||||||
flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).")
|
flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
// These are OpenBSD specific protections used to prevent un-necesary file access.
|
// These are OpenBSD specific protections used to prevent unnecessary file access.
|
||||||
protect.Unveil(staticDir, "r")
|
_ = protect.Unveil(staticDir, "r")
|
||||||
protect.Unveil(passPath, "r")
|
_ = protect.Unveil(passPath, "r")
|
||||||
protect.Unveil(davDir, "rwc")
|
_ = protect.Unveil(davDir, "rwc")
|
||||||
protect.Unveil(cacheDir, "rwc")
|
_ = protect.Unveil(cacheDir, "rwc")
|
||||||
protect.Unveil("/etc/ssl/cert.pem", "r")
|
_ = protect.Unveil("/etc/ssl/cert.pem", "r")
|
||||||
protect.Unveil("/etc/resolv.conf", "r")
|
_ = protect.Unveil("/etc/resolv.conf", "r")
|
||||||
err = protect.UnveilBlock()
|
err = protect.UnveilBlock()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user