From: Christos Tsantilas Date: Thu, 30 Jun 2011 03:21:11 +0000 (-0600) Subject: Bug 3239: Rename myip/myport as localip/localport - Fix initial patch X-Git-Tag: SQUID_3_1_13~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdc2a6ca68ab22c862018c832f18fd3ee4ffc068;p=thirdparty%2Fsquid.git Bug 3239: Rename myip/myport as localip/localport - Fix initial patch A misstyped if(strcmp ...) statemets has as result, all acl type in squid.conf to be considered as "localip" acl type. --- diff --git a/src/acl/Acl.cc b/src/acl/Acl.cc index 316fdbc6bc..a69408fe2e 100644 --- a/src/acl/Acl.cc +++ b/src/acl/Acl.cc @@ -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