]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/LocalIp.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / LocalIp.cc
CommitLineData
8000a965 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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 15char const *
1e40905d 16ACLLocalIP::typeString() const
8000a965 17{
1e40905d 18 return "localip";
8000a965 19}
20
21int
1e40905d 22ACLLocalIP::match(ACLChecklist *checklist)
8000a965 23{
c0941a6a 24 return ACLIP::match (Filled(checklist)->my_addr);
8000a965 25}
26
8000a965 27ACL *
1e40905d 28ACLLocalIP::clone() const
8000a965 29{
bb8466d6 30 return new ACLLocalIP(*this);
8000a965 31}
f53969cc 32