Skip to content
Snippets Groups Projects
Commit a667162c authored by Jonah Husson's avatar Jonah Husson
Browse files

Add h2 to allowed protocols for web server

parent f7d612d2
No related branches found
No related tags found
3 merge requests!39Merge release into master,!34Update to use modified client, add params for relevant options, enable use of tls with web conn,!32Project/channels
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment