diff --git a/redoctober.go b/redoctober.go index 1151006..2a08f6c 100644 --- a/redoctober.go +++ b/redoctober.go @@ -170,9 +170,10 @@ func NewServer(staticPath, addr, caPath string, certPaths, keyPaths []string, us mux.HandleFunc("/", idxHandler.handle) srv := http.Server{ - Addr: addr, - Handler: mux, - TLSConfig: config, + Addr: addr, + Handler: mux, + TLSConfig: config, + TLSNextProto: map[string]func(*http.Server, *tls.Conn, http.Handler){}, } // The core package is not safe to be shared across goroutines so