Skip to content

Commit

Permalink
Update http.go
Browse files Browse the repository at this point in the history
Fixed inverted sniff writers
  • Loading branch information
shoriwe committed May 28, 2022
1 parent beace7c commit 8954293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/proxy/servers/reverse/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func (H *HTTP) ServeHTTP(writer http.ResponseWriter, request *http.Request) {
serverConnection = tls.Client(serverConnection, host.TLSConfig)
}
server := &common.Sniffer{
WriteSniffer: H.IncomingSniffer,
ReadSniffer: H.OutgoingSniffer,
WriteSniffer: H.OutgoingSniffer,
ReadSniffer: H.IncomingSniffer,
Connection: serverConnection,
}
// Send request to server
Expand Down

0 comments on commit 8954293

Please sign in to comment.