added ciphers for h3

This commit is contained in:
Rahul Somasundaram 2022-10-04 09:51:55 +05:30
parent 8a924cb4ed
commit 24eb3476db
No known key found for this signature in database
GPG Key ID: AA8F0B27E83147BD

View File

@ -318,7 +318,7 @@ func (web *Web) tlsServerLoop() {
printHTTPAddresses(aghhttp.SchemeHTTPS)
if web.conf.serveHTTP3 {
go web.mustStartHTTP3(addr)
go web.mustStartHTTP3(addr, cipher)
}
log.Debug("web: starting https server")
@ -330,7 +330,7 @@ func (web *Web) tlsServerLoop() {
}
}
func (web *Web) mustStartHTTP3(address string) {
func (web *Web) mustStartHTTP3(address string, ciphers []uint16) {
defer log.OnPanic("web: http3")
web.httpsServer.server3 = &http3.Server{
@ -340,7 +340,7 @@ func (web *Web) mustStartHTTP3(address string) {
TLSConfig: &tls.Config{
Certificates: []tls.Certificate{web.httpsServer.cert},
RootCAs: Context.tlsRoots,
CipherSuites: aghtls.SaferCipherSuites(),
CipherSuites: ciphers,
MinVersion: tls.VersionTLS12,
},
Handler: withMiddlewares(Context.mux, limitRequestBody),