aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-04-09 16:43:27 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-04-09 16:43:27 +0200
commit8548c9747fc0a4deb470fd89a255041eda2b79f1 (patch)
tree890219fedff6179ed919b0e93c5f917d50945f59
parent07cc573c5d98ea93e65ad88da3c51be8f0137f88 (diff)
Drop wss as it won't work with http/2.0
-rw-r--r--server.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/server.go b/server.go
index 3437590..a11da91 100644
--- a/server.go
+++ b/server.go
@@ -107,12 +107,7 @@ func (s *Server) UpdateMux() error {
case "ws":
wwwMux.Handle(host, NewWebSocketProxy(upstream))
case "wss":
- err := s.SNI.addCertificate(route.Cert, route.Key)
- if err != nil {
- return err
- }
- tlsMux.Handle(host, NewWebSocketProxy(upstream))
- wwwMux.Handle(host, NewRedirect("wss://"+host))
+ return fmt.Errorf("wss won't work with http/2.0")
}
}
s.wwwServer.Handler = wwwMux