Skip to content

Commit

Permalink
added ciphers for h3
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrahul96 committed Oct 4, 2022
1 parent 8a924cb commit 24eb347
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/home/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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{
Expand All @@ -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),
Expand Down

0 comments on commit 24eb347

Please sign in to comment.