Skip to content

Commit

Permalink
Add proto annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
rthellend committed Nov 30, 2024
1 parent 30083c0 commit deabc0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (p *Proxy) webSocketHandler(cfg WebSocketConfig) http.Handler {
wc.SetAnnotation(startTimeKey, time.Now())
if conn, ok := req.Context().Value(connCtxKey).(anyConn); ok {
annotatedConn(conn).SetAnnotation(httpUpgradeKey, "websocket")
wc.SetAnnotation(httpUpgradeKey, "websocket")
wc.SetAnnotation(serverNameKey, connServerName(conn))
wc.SetAnnotation(protoKey, "websocket->tcp")
wc.SetAnnotation(modeKey, connMode(conn))
}
p.outConns.add(wc)
Expand Down

0 comments on commit deabc0f

Please sign in to comment.