]>
Commit | Line | Data |
---|---|---|
8000a965 | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
8000a965 | 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. | |
8000a965 | 7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 28 Access Control */ |
10 | ||
582c2af2 | 11 | #include "squid.h" |
c0941a6a | 12 | #include "acl/FilledChecklist.h" |
602d9612 | 13 | #include "acl/LocalIp.h" |
8000a965 | 14 | |
8000a965 | 15 | char const * |
1e40905d | 16 | ACLLocalIP::typeString() const |
8000a965 | 17 | { |
1e40905d | 18 | return "localip"; |
8000a965 | 19 | } |
20 | ||
21 | int | |
1e40905d | 22 | ACLLocalIP::match(ACLChecklist *checklist) |
8000a965 | 23 | { |
c0941a6a | 24 | return ACLIP::match (Filled(checklist)->my_addr); |
8000a965 | 25 | } |
26 | ||
8000a965 | 27 | ACL * |
1e40905d | 28 | ACLLocalIP::clone() const |
8000a965 | 29 | { |
bb8466d6 | 30 | return new ACLLocalIP(*this); |
8000a965 | 31 | } |
f53969cc | 32 |