From f6ed860ccb4911e41dda374238d834f680006612 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 3 May 2023 23:26:04 +0900 Subject: [PATCH] Fixed MTASTSHTTPS.NonTLS option (#29) AutoconfigHTTPS.NonTLS option was being used. Fixed to use MTASTSHTTPS.NonTLS option. --- http/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/web.go b/http/web.go index 9886446..021f5b6 100644 --- a/http/web.go +++ b/http/web.go @@ -396,7 +396,7 @@ func Listen() { } if l.MTASTSHTTPS.Enabled { port := config.Port(l.MTASTSHTTPS.Port, 443) - srv := ensureServe(!l.AutoconfigHTTPS.NonTLS, port, "mtasts-https") + srv := ensureServe(!l.MTASTSHTTPS.NonTLS, port, "mtasts-https") mtastsMatch := func(dom dns.Domain) bool { // todo: may want to check this against the configured domains, could in theory be just a webserver. return strings.HasPrefix(dom.ASCII, "mta-sts.")