]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/PeerName.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / PeerName.cc
CommitLineData
bbc27441 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
bbc27441
AJ
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
582c2af2 9#include "squid.h"
602d9612 10#include "acl/Checklist.h"
127dce76 11#include "acl/PeerName.h"
16bdd4c0 12#include "acl/RegexData.h"
127dce76 13#include "acl/StringData.h"
a011edee 14#include "CachePeer.h"
6db78a1a 15
6db78a1a 16int
33810b1d 17ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
6db78a1a
AJ
18{
19 if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
9e008dda 20 return data->match(checklist->dst_peer->name);
6db78a1a
AJ
21 return 0;
22}
23
24ACLPeerNameStrategy *
25ACLPeerNameStrategy::Instance()
26{
27 return &Instance_;
28}
29
30ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;
f53969cc 31