]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/MyPortName.cc
f47b57be7a5213c58d850cc8ca932afb5a80706a
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
10 #include "acl/FilledChecklist.h"
11 #include "acl/MyPortName.h"
12 #include "acl/StringData.h"
13 #include "anyp/PortCfg.h"
14 #include "client_side.h"
15 #include "http/Stream.h"
16 #include "HttpRequest.h"
19 ACLMyPortNameStrategy::match(ACLData
<MatchType
> * &data
, ACLFilledChecklist
*checklist
)
21 if (checklist
->conn() != nullptr && checklist
->conn()->port
!= nullptr)
22 return data
->match(checklist
->conn()->port
->name
);
23 if (checklist
->request
!= nullptr)
24 return data
->match(checklist
->request
->myportname
.termedBuf());