Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 05ea471

Browse files
committed
[proxy]websocket增加X-Forwarded-For和X-Real-IP等Header
1 parent 2556784 commit 05ea471

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

teaproxy/request_websocket.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ func (this *Request) callWebsocket(writer *ResponseWriter) error {
125125
}
126126
}
127127

128+
this.setProxyHeaders(header)
129+
128130
// 自定义请求Header
129131
for _, h := range this.requestHeaders {
130132
if !h.On {

0 commit comments

Comments
 (0)