]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/PeerName.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / PeerName.cc
CommitLineData
bbc27441 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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 18{
1b091aec
CT
19 if (!checklist->dst_peer_name.isEmpty())
20 return data->match(checklist->dst_peer_name.c_str());
6db78a1a
AJ
21 return 0;
22}
23
24ACLPeerNameStrategy *
25ACLPeerNameStrategy::Instance()
26{
27 return &Instance_;
28}
29
30ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;
f53969cc 31