2 * Copyright (C) 1996-2017 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.
9 #ifndef SQUID_ACLDESTINATIONIP_H
10 #define SQUID_ACLDESTINATIONIP_H
12 #include "acl/Checklist.h"
16 class DestinationIPLookup
: public ACLChecklist::AsyncState
20 static DestinationIPLookup
*Instance();
21 virtual void checkForAsync(ACLChecklist
*)const;
24 static DestinationIPLookup instance_
;
25 static IPH LookupDone
;
28 class ACLDestinationIP
: public ACLIP
30 MEMPROXY_CLASS(ACLDestinationIP
);
33 virtual char const *typeString() const;
34 virtual const Acl::Options
&options();
35 virtual int match(ACLChecklist
*checklist
);
37 virtual ACL
*clone()const;
40 Acl::BooleanOptionValue lookupBanned
; ///< are DNS lookups allowed?
43 #endif /* SQUID_ACLDESTINATIONIP_H */