bool
ConnStateData::proxyProtocolError(const char *msg)
{
- if (msg)
+ if (msg) {
+ debugs(33, 2, msg << " from " << clientConnection);
mustStop(msg);
+ }
return false;
}
// else, no LF found
// protocol error only if there are more than 107 bytes prefix header
- return proxyProtocolError(in.buf.length() > 107? "PROXY error: missing CRLF":NULL);
+ return proxyProtocolError(in.buf.length() > 107? "PROXY/1.0 error: missing CRLF":NULL);
} else if (!tcpVersion.cmp("TCP",3)) {