Skip to content
Snippets Groups Projects
Commit eef6c29c authored by Konrad Zemek's avatar Konrad Zemek
Browse files

Fix forwarding bytes received with PROXY header.

parent ba73ce8d
No related branches found
No related tags found
No related merge requests found
......@@ -292,7 +292,7 @@ func handleConnection(conn net.Conn, listenLog *zap.Logger) {
}
for len(restBytes) > 0 {
n, err := conn.Write(restBytes)
n, err := upstreamConn.Write(restBytes)
if err != nil {
connLog.Debug("failed to write data to upstream connection",
zap.Error(err), zap.Bool("dropConnection", true))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment