]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3239: Rename myip/myport as localip/localport - Fix initial patch
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 30 Jun 2011 03:21:11 +0000 (21:21 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 30 Jun 2011 03:21:11 +0000 (21:21 -0600)
A misstyped  if(strcmp ...) statemets has as result, all acl type in squid.conf
to be considered as "localip" acl type.

src/acl/Acl.cc

index 316fdbc6bc12d6423a92a50fc40ed063a23efb31..a69408fe2e59b5f1c4f354312b0e0d56c121fd47 100644 (file)
@@ -128,7 +128,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
     }
 
     // Is this ACL going to work?
-    if (strcmp(theType, "myip") != 0) {
+    if (strcmp(theType, "myip") == 0) {
         http_port_list *p = Config.Sockaddr.http;
         while (p) {
             // Bug 3239: not reliable when there is interception traffic coming
@@ -136,7 +136,7 @@ ACL::ParseAclLine(ConfigParser &parser, ACL ** head)
                 debugs(28, DBG_CRITICAL, "WARNING: 'myip' ACL is not reliable for interception proxies. Please use 'myportname' instead.");
             p = p->next;
         }
-    } else if (strcmp(theType, "myport") != 0) {
+    } else if (strcmp(theType, "myport") == 0) {
         http_port_list *p = Config.Sockaddr.http;
         while (p) {
             // Bug 3239: not reliable when there is interception traffic coming