services/proxy/proxyd: remove tcp/ws hack.
Change-Id: Ib681647aaf123cc658b223e2828e1a8fca0a8619
diff --git a/services/proxy/proxyd/main.go b/services/proxy/proxyd/main.go
index 1f0f177..b7f155a 100644
--- a/services/proxy/proxyd/main.go
+++ b/services/proxy/proxyd/main.go
@@ -6,7 +6,6 @@
"flag"
"net/http"
_ "net/http/pprof"
- "strings"
"time"
"v.io/core/veyron2"
@@ -55,13 +54,6 @@
defer publisher.Stop()
ep := naming.JoinAddressName(proxy.Endpoint().String(), "")
publisher.AddServer(ep, false)
- // If the protocol is tcp we need to also publish the websocket endpoint.
- // TODO(bjornick): Remove this hack before we launch.
- if strings.HasPrefix(proxy.Endpoint().Addr().Network(), "tcp") {
- wsEP := strings.Replace(ep, "@"+proxy.Endpoint().Addr().Network()+"@", "@ws@", 1)
- publisher.AddServer(wsEP, false)
- }
-
publisher.AddName(*name)
}