From 68518d85c9b6707223471d73608971cc6b03c1ac Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Sat, 17 Jun 2017 21:56:52 +0100 Subject: Disable grpc multiplexer --- server/server.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/server.go b/server/server.go index 676a61b..97b3c63 100644 --- a/server/server.go +++ b/server/server.go @@ -7,7 +7,6 @@ import ( "net" "github.com/pkg/errors" - "github.com/soheilhy/cmux" "go4.org/wkfs" "golang.org/x/crypto/acme/autocert" @@ -108,10 +107,5 @@ func Run(conf *config.Config) { } log.Printf("Starting server on %s", laddr) - cm := cmux.New(l) - httpl := cm.Match(cmux.HTTP1Fast()) - grpcl := cm.Match(cmux.HTTP2HeaderField("content-type", "application/grpc")) - go runHTTPServer(conf.Server, httpl) - go runGRPCServer(grpcl) - log.Fatal(cm.Serve()) + runHTTPServer(conf.Server, l) } -- cgit v1.2.3