aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ws.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/ws.go b/ws.go
index 35760e1..5d90254 100644
--- a/ws.go
+++ b/ws.go
@@ -27,16 +27,6 @@ func (p *WebSocketProxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
p.Director(r)
- _, port, err := net.SplitHostPort(r.URL.Host)
- if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
- return
- }
-
- if port == "" {
- r.URL.Host += ":http"
- }
-
d, err := net.Dial("tcp", r.URL.Host)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)