From a667162c07c7e9a49affbccbd4b7dc6b8ed098aa Mon Sep 17 00:00:00 2001
From: jbhusson <jonah@elixxir.io>
Date: Fri, 26 Aug 2022 16:50:07 -0400
Subject: [PATCH] Add h2 to allowed protocols for web server

---
 connect/comms.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/connect/comms.go b/connect/comms.go
index a2a783b..32eff14 100644
--- a/connect/comms.go
+++ b/connect/comms.go
@@ -241,7 +241,7 @@ func (c *ProtoComms) ServeWithWeb() {
 		} else {
 			// Configure tls for this listener, using the config from http.ServeTLS
 			tlsConf := &tls.Config{}
-			tlsConf.NextProtos = append(tlsConf.NextProtos, "http/1.1")
+			tlsConf.NextProtos = append(tlsConf.NextProtos, "h2", "http/1.1")
 			tlsConf.Certificates = make([]tls.Certificate, 1)
 			// Our internal certificates may not pass standard verification
 			tlsConf.InsecureSkipVerify = true
-- 
GitLab