From 8e178d9a1f3a0458090c0ab186e61b56f30adba6 Mon Sep 17 00:00:00 2001 From: belst Date: Sun, 26 Feb 2023 15:57:22 +0100 Subject: [PATCH] fix config options --- http/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/web.go b/http/web.go index a228706..8177b6b 100644 --- a/http/web.go +++ b/http/web.go @@ -76,7 +76,7 @@ func ListenAndServe() { srv.mux.HandleFunc("/", safeHeaders(accountHandle)) } if l.AccountHTTPS.Enabled { - srv := ensureServe(true, config.Port(l.AccountHTTP.Port, 443), "account-https") + srv := ensureServe(true, config.Port(l.AccountHTTPS.Port, 443), "account-https") srv.mux.HandleFunc("/", safeHeaders(accountHandle)) } @@ -89,7 +89,7 @@ func ListenAndServe() { } if l.AdminHTTPS.Enabled { srv := ensureServe(true, config.Port(l.AdminHTTPS.Port, 443), "admin-https") - if !l.AccountHTTP.Enabled { + if !l.AccountHTTPS.Enabled { srv.mux.HandleFunc("/", safeHeaders(adminIndex)) } srv.mux.HandleFunc("/admin/", safeHeaders(adminHandle))