~clint-fewbar/ubuntu/precise/squid3/ignore-sighup-early

« back to all changes in this revision

Viewing changes to src/acl/PeerName.cc

  • Committer: Bazaar Package Importer
  • Author(s): Luigi Gangitano
  • Date: 2009-09-24 14:51:06 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (20.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 21.
  • Revision ID: james.westby@ubuntu.com-20090924145106-38jgrzmj0d73pha5
Tags: 3.1.0.13-1
* Upload to experimental

* New upstream release
  - Fixes Follow-X-Forwarded-For support (Closes: #523943)
  - Adds IPv6 support (Closes: #432351)

* debian/rules
  - Removed obsolete configuration options
  - Enable db and radius basic authentication modules

* debian/patches/01-cf.data.debian
  - Adapted to new upstream version

* debian/patches/02-makefile-defaults
  - Adapted to new upstream version

* debian/{squid.postinst,squid.rc,README.Debian,watch}
  - Updated references to squid 3.1

* debian/squid3.install
  - Install CSS file for error pages
  - Install manual pages for new authentication modules

* debian/squid3-common.install
  - Install documented version of configuration file in /usr/share/doc/squid3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "squid.h"
 
2
#include "acl/PeerName.h"
 
3
#include "acl/StringData.h"
 
4
#include "acl/Checklist.h"
 
5
 
 
6
 
 
7
 
 
8
int
 
9
ACLPeerNameStrategy::match (ACLData<MatchType> * &data, ACLFilledChecklist *checklist)
 
10
{
 
11
    if (checklist->dst_peer != NULL && checklist->dst_peer->name != NULL)
 
12
        return data->match(checklist->dst_peer->name);
 
13
    return 0;
 
14
}
 
15
 
 
16
ACLPeerNameStrategy *
 
17
ACLPeerNameStrategy::Instance()
 
18
{
 
19
    return &Instance_;
 
20
}
 
21
 
 
22
ACLPeerNameStrategy ACLPeerNameStrategy::Instance_;