]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Identify where unknown method requests come from
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Dec 2008 11:22:07 +0000 (00:22 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Dec 2008 11:22:07 +0000 (00:22 +1300)
src/client_side.cc

index 3ca6c20f53ef9cf2a222893b4da6eeb4deb51701..0d6cb0cf4dfef050c1d099ba9896533f3343d2d8 100644 (file)
@@ -1900,7 +1900,7 @@ parseHttpRequest(ConnStateData::Pointer & conn, HttpParser *hp, method_t * metho
             garbage[i] = ((hp->buf[i] < ' ' || hp->buf[i] > '~' )? '_': hp->buf[i]);
 
         /* XXX need a way to say "this many character length string" */
-        debugs(33, 1, "clientParseRequestMethod: Unsupported method: This is not a bug. see squid.conf extension_methods");
+        debugs(33, 1, "clientParseRequestMethod: Unsupported method attempted by " << inet_ntoa(conn->peer) << ": This is not a bug. see squid.conf extension_methods");
         debugs(33, 1, "clientParseRequestMethod: Unsupported method in request '" << garbage << "'");
 
         /* XXX where's the method set for this error? */