source: squid-ssl/trunk/fuentes/src/acl/PeerName.cc @ 5495

Last change on this file since 5495 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 813 bytes
Line 
1/*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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
9#include "squid.h"
10#include "acl/Checklist.h"
11#include "acl/PeerName.h"
12#include "acl/RegexData.h"
13#include "acl/StringData.h"
14#include "CachePeer.h"
15
16int
17ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
18{
19    if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
20        return data->match(checklist->dst_peer->name);
21    return 0;
22}
23
24ACLPeerNameStrategy *
25ACLPeerNameStrategy::Instance()
26{
27    return &Instance_;
28}
29
30ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;
31
Note: See TracBrowser for help on using the repository browser.