mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 18:08:30 -07:00
added ciphers for h3
This commit is contained in:
parent
8a924cb4ed
commit
24eb3476db
@ -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…
Reference in New Issue
Block a user