mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-03-14 22:48:35 +03:00
added ciphers for h3
This commit is contained in:
parent
8a924cb4ed
commit
24eb3476db
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue