]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/UrlPort.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / UrlPort.cc
CommitLineData
48071869 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
48071869 3 *
bbc27441
AJ
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.
48071869 7 */
8
582c2af2 9#include "squid.h"
127dce76 10#include "acl/Checklist.h"
602d9612
A
11#include "acl/IntRange.h"
12#include "acl/UrlPort.h"
a2ac85d9 13#include "HttpRequest.h"
48071869 14
48071869 15int
5c51bffb 16ACLUrlPortStrategy::match(ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
48071869 17{
5c51bffb 18 return data->match(checklist->request->url.port());
48071869 19}
20
21ACLUrlPortStrategy *
22ACLUrlPortStrategy::Instance()
23{
24 return &Instance_;
25}
26
27ACLUrlPortStrategy ACLUrlPortStrategy::Instance_;
f53969cc 28