From cdc2a6ca68ab22c862018c832f18fd3ee4ffc068 Mon Sep 17 00:00:00 2001 From: Christos Tsantilas Date: Wed, 29 Jun 2011 21:21:11 -0600 Subject: [PATCH] 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. --- src/acl/Acl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2