]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/acl/PeerName.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / PeerName.cc
index 41284f17d7e69bd3203973b1e7c6b72372578de3..3b69a04300997699f94a227b10bb0b19de173eab 100644 (file)
@@ -1,14 +1,12 @@
 #include "squid.h"
+#include "acl/Checklist.h"
 #include "acl/PeerName.h"
+#include "acl/RegexData.h"
 #include "acl/StringData.h"
-#include "acl/Checklist.h"
-
-ACL::Prototype ACLPeerName::RegistryProtoype(&ACLPeerName::RegistryEntry_, "peername");
-
-ACLStrategised<const char *> ACLPeerName::RegistryEntry_(new ACLStringData, ACLPeerNameStrategy::Instance(), "peername");
+#include "CachePeer.h"
 
 int
-ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
+ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
 {
     if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
         return data->match(checklist->dst_peer->name);