From c6b7ac2ee5a08488d717cb77cff5af98257aa45c Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Thu, 8 Feb 2024 16:32:00 -0600 Subject: [PATCH] Require that the setting is set to false to disable. References: https://todo.code.netlandish.com/~netlandish/links/45 --- cmd/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server.go b/cmd/server.go index 28ed5ed..bcb899a 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -191,7 +191,7 @@ func LoadStorageService(config *config.Config) (storage.Service, error) { // LoadAutoTLS ... func LoadAutoTLS(config *config.Config, db *sql.DB, service int) *autocert.Manager { autotls, ok := config.File.Get("links", "auto-tls") - if ok || autotls == "false" { + if ok && autotls == "false" { // Enabled by default return nil } -- 2.45.2