]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Log PROXY errors to cache.log
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Jul 2014 01:46:09 +0000 (18:46 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 25 Jul 2014 01:46:09 +0000 (18:46 -0700)
src/client_side.cc

index 99b7b2a1eaf49abb452ab540798e083be75935d2..3c171e7e86e1f61b53f0f34cbbc3d8cca54f249c 100644 (file)
@@ -2931,8 +2931,10 @@ ConnStateData::proxyProtocolValidateClient()
 bool
 ConnStateData::proxyProtocolError(const char *msg)
 {
-    if (msg)
+    if (msg) {
+        debugs(33, 2, msg << " from " << clientConnection);
         mustStop(msg);
+    }
     return false;
 }
 
@@ -2994,7 +2996,7 @@ ConnStateData::parseProxy10()
         // 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)) {