]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/PeerName.cc
Merged from trunk.
[thirdparty/squid.git] / src / acl / PeerName.cc
1 #include "squid.h"
2 #include "acl/PeerName.h"
3 #include "acl/StringData.h"
4 #include "acl/Checklist.h"
5
6
7
8 int
9 ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
10 {
11 if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
12 return data->match(checklist->dst_peer->name);
13 return 0;
14 }
15
16 ACLPeerNameStrategy *
17 ACLPeerNameStrategy::Instance()
18 {
19 return &Instance_;
20 }
21
22 ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;