aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/server.go8
1 files changed, 1 insertions, 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)
}