]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3610: peername_regex ACL
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Aug 2012 07:24:50 +0000 (01:24 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Aug 2012 07:24:50 +0000 (01:24 -0600)
src/AclRegs.cc
src/acl/PeerName.cc
src/acl/PeerName.h

index a4a5eb934bc4c2868c0db4c22114822a5d4505c7..8953c736f153b4733b64282f6ab90b8af2719f95 100644 (file)
@@ -109,6 +109,8 @@ ACL::Prototype ACLMyPortName::RegistryProtoype(&ACLMyPortName::RegistryEntry_, "
 ACLStrategised<const char *> ACLMyPortName::RegistryEntry_(new ACLStringData, ACLMyPortNameStrategy::Instance(), "myportname");
 ACL::Prototype ACLPeerName::RegistryProtoype(&ACLPeerName::RegistryEntry_, "peername");
 ACLStrategised<const char *> ACLPeerName::RegistryEntry_(new ACLStringData, ACLPeerNameStrategy::Instance(), "peername");
+ACL::Prototype ACLPeerName::RegexRegistryProtoype(&ACLPeerName::RegexRegistryEntry_, "peername_regex");
+ACLStrategised<char const *> ACLPeerName::RegexRegistryEntry_(new ACLRegexData, ACLPeerNameStrategy::Instance(), "peername_regex");
 ACL::Prototype ACLProtocol::RegistryProtoype(&ACLProtocol::RegistryEntry_, "proto");
 ACLStrategised<AnyP::ProtocolType> ACLProtocol::RegistryEntry_(new ACLProtocolData, ACLProtocolStrategy::Instance(), "proto");
 ACL::Prototype ACLRandom::RegistryProtoype(&ACLRandom::RegistryEntry_, "random");
index 91f496229c11d78a018a863a9b8eec9d472a7be7..314636b61c8cea32ef7fc28bb8459fb737b6b630 100644 (file)
@@ -1,5 +1,6 @@
 #include "squid-old.h"
 #include "acl/PeerName.h"
+#include "acl/RegexData.h"
 #include "acl/StringData.h"
 #include "acl/Checklist.h"
 
index cc69e7a025dff08d53c7379831f808420d07319a..3e646c1955f896fc9f6f391a15a191862216c57e 100644 (file)
@@ -28,6 +28,8 @@ class ACLPeerName
 private:
     static ACL::Prototype RegistryProtoype;
     static ACLStrategised<const char *> RegistryEntry_;
+    static ACL::Prototype RegexRegistryProtoype;
+    static ACLStrategised<char const *> RegexRegistryEntry_;
 };
 
 #endif /* SQUID_ACLPEERNAME_H */