]>
Commit | Line | Data |
---|---|---|
f7f3304a | 1 | #include "squid-old.h" |
127dce76 AR |
2 | #include "acl/PeerName.h" |
3 | #include "acl/StringData.h" | |
4 | #include "acl/Checklist.h" | |
6db78a1a | 5 | |
6db78a1a | 6 | |
6db78a1a AJ |
7 | |
8 | int | |
127dce76 | 9 | ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist) |
6db78a1a AJ |
10 | { |
11 | if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL) | |
9e008dda | 12 | return data->match(checklist->dst_peer->name); |
6db78a1a AJ |
13 | return 0; |
14 | } | |
15 | ||
16 | ACLPeerNameStrategy * | |
17 | ACLPeerNameStrategy::Instance() | |
18 | { | |
19 | return &Instance_; | |
20 | } | |
21 | ||
22 | ACLPeerNameStrategy ACLPeerNameStrategy::Instance_; |