]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/PeerName.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / acl / PeerName.cc
CommitLineData
bbc27441 1/*
77b1029d 2 * Copyright (C) 1996-2020 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"
4eac3407 10#include "acl/FilledChecklist.h"
127dce76 11#include "acl/PeerName.h"
16bdd4c0 12#include "acl/RegexData.h"
127dce76 13#include "acl/StringData.h"
6db78a1a 14
6db78a1a 15int
4eac3407 16ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
6db78a1a 17{
1b091aec
CT
18 if (!checklist->dst_peer_name.isEmpty())
19 return data->match(checklist->dst_peer_name.c_str());
6db78a1a
AJ
20 return 0;
21}
22