Pass TLS config instead of QUIC

This commit is contained in:
DataHoarder 2022-06-06 22:58:53 +02:00
parent aa7b426306
commit 10187307da
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -138,7 +138,7 @@ func (server *Server) Serve() {
ReadTimeout: 5 * time.Second,
IdleTimeout: 15 * time.Second,
Addr: server.ListenAddress,
TLSConfig: server.TLSConfig.QUICConfig,
TLSConfig: server.TLSConfig.Config,
Handler: http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
server.Handler(handler(w, r))
}),