]>
Commit | Line | Data |
---|---|---|
8000a965 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 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 | ||
9 | #ifndef SQUID_ACLDESTINATIONIP_H | |
10 | #define SQUID_ACLDESTINATIONIP_H | |
741c2986 | 11 | |
3ad63615 AR |
12 | #include "acl/Checklist.h" |
13 | #include "acl/Ip.h" | |
714e68b7 | 14 | #include "ipcache.h" |
8000a965 | 15 | |
62e76326 | 16 | class ACLDestinationIP : public ACLIP |
17 | { | |
b001e822 | 18 | MEMPROXY_CLASS(ACLDestinationIP); |
8000a965 | 19 | |
741c2986 | 20 | public: |
922513e5 | 21 | static void StartLookup(ACLFilledChecklist &, const Acl::Node &); |
5fb6afec | 22 | |
337b9aa4 AR |
23 | char const *typeString() const override; |
24 | const Acl::Options &options() override; | |
25 | int match(ACLChecklist *checklist) override; | |
62e76326 | 26 | |
62e76326 | 27 | private: |
5fb6afec EB |
28 | static void LookupDone(const ipcache_addrs *, const Dns::LookupDetails &, void *data); |
29 | ||
4eac3407 | 30 | Acl::BooleanOptionValue lookupBanned; ///< are DNS lookups allowed? |
8000a965 | 31 | }; |
32 | ||
33 | #endif /* SQUID_ACLDESTINATIONIP_H */ | |
f53969cc | 34 |