From b929b559c410f1ee5d6d9e2e15eaa80243948cd9 Mon Sep 17 00:00:00 2001 From: nathaninline Date: Mon, 13 Jul 2026 14:14:45 +0200 Subject: [PATCH] oai: ajoute http/1.1 aux protocoles ALPN (certmagic ne met que acme-tls/1, sinon les clients normaux sont rejetes) --- oai.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oai.go b/oai.go index 54fbcad..69f5f84 100644 --- a/oai.go +++ b/oai.go @@ -95,6 +95,10 @@ func oaiTLSConfig() *tls.Config { }, } cfg := magic.TLSConfig() // GetCertificate (on-demand) + gère l'ALPN acme-tls/1 + // certmagic ne met QUE "acme-tls/1" dans NextProtos ; sans "http/1.1" les + // clients normaux sont rejetés (« unsupported application protocols »). On + // préfixe http/1.1 tout en gardant acme-tls/1 pour les challenges. + cfg.NextProtos = append([]string{"http/1.1"}, cfg.NextProtos...) cfg.MinVersion = tls.VersionTLS12 return cfg }