mirror of
https://github.com/R0m1k3/Loki.git
synced 2026-10-22 22:48:11 +02:00
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:
1 parent
4ecc4159de
commit
b929b559c4
1 file changed
+4
@@ -95,6 +95,10 @@ func oaiTLSConfig() *tls.Config {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
cfg := magic.TLSConfig() // GetCertificate (on-demand) + gère l'ALPN acme-tls/1
|
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
|
cfg.MinVersion = tls.VersionTLS12
|
||||||
return cfg
|
return cfg
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user