]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/UrlPort.cc
Merged from v5 r15006
[thirdparty/squid.git] / src / acl / UrlPort.cc
1 /*
2 * Copyright (C) 1996-2017 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/IntRange.h"
12 #include "acl/UrlPort.h"
13 #include "HttpRequest.h"
14
15 int
16 ACLUrlPortStrategy::match(ACLData<MatchType> * &data, ACLFilledChecklist *checklist, ACLFlags &)
17 {
18 return data->match(checklist->request->url.port());
19 }
20
21 ACLUrlPortStrategy *
22 ACLUrlPortStrategy::Instance()
23 {
24 return &Instance_;
25 }
26
27 ACLUrlPortStrategy ACLUrlPortStrategy::Instance_;
28