Skip to content

Commit a781096

Browse files
committed
websocket: rename old name
1 parent 15ecc39 commit a781096

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

websocketproxy.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,20 +77,20 @@ func (w *WebsocketProxy) ServerHTTP(rw http.ResponseWriter, req *http.Request) {
7777
dialer = DefaultDialer
7878
}
7979

80-
connKite, _, err := dialer.Dial(backendURL.String(), nil)
80+
connBackend, _, err := dialer.Dial(backendURL.String(), nil)
8181
if err != nil {
8282
log.Printf("websocketproxy: couldn't dial to remote backend url %s\n", err)
8383
return
8484
}
85-
defer connKite.Close()
85+
defer connBackend.Close()
8686

8787
errc := make(chan error, 2)
8888
cp := func(dst io.Writer, src io.Reader) {
8989
_, err := io.Copy(dst, src)
9090
errc <- err
9191
}
9292

93-
go cp(connKite.UnderlyingConn(), connPub.UnderlyingConn())
94-
go cp(connPub.UnderlyingConn(), connKite.UnderlyingConn())
93+
go cp(connBackend.UnderlyingConn(), connPub.UnderlyingConn())
94+
go cp(connPub.UnderlyingConn(), connBackend.UnderlyingConn())
9595
<-errc
9696
}

0 commit comments

Comments
 (0)