oai: ajoute http/1.1 aux protocoles ALPN (certmagic ne met que acme-tls/1, sinon les clients normaux sont rejetes)

This commit is contained in:
nathaninline committed 2026-07-13 14:14:45 +02:00
1 parent 4ecc4159de
commit b929b559c4
1 file changed
+4
+4
View File
@@ -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
}