~netlandish/links

c6b7ac2ee5a08488d717cb77cff5af98257aa45c — Peter Sanchez 9 months ago af4d7bf
Require that the setting is set to false to disable.

References: https://todo.code.netlandish.com/~netlandish/links/45
1 files changed, 1 insertions(+), 1 deletions(-)

M cmd/server.go
M cmd/server.go => cmd/server.go +1 -1
@@ 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
	}