]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors | |
3 | * | |
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. | |
7 | */ | |
8 | ||
9 | #ifndef SQUID_ACLDESTINATIONIP_H | |
10 | #define SQUID_ACLDESTINATIONIP_H | |
11 | ||
12 | #include "acl/Checklist.h" | |
13 | #include "acl/Ip.h" | |
14 | #include "ipcache.h" | |
15 | ||
16 | class DestinationIPLookup : public ACLChecklist::AsyncState | |
17 | { | |
18 | ||
19 | public: | |
20 | static DestinationIPLookup *Instance(); | |
21 | void checkForAsync(ACLChecklist *)const override; | |
22 | ||
23 | private: | |
24 | static DestinationIPLookup instance_; | |
25 | static IPH LookupDone; | |
26 | }; | |
27 | ||
28 | class ACLDestinationIP : public ACLIP | |
29 | { | |
30 | MEMPROXY_CLASS(ACLDestinationIP); | |
31 | ||
32 | public: | |
33 | char const *typeString() const override; | |
34 | const Acl::Options &options() override; | |
35 | int match(ACLChecklist *checklist) override; | |
36 | ||
37 | private: | |
38 | Acl::BooleanOptionValue lookupBanned; ///< are DNS lookups allowed? | |
39 | }; | |
40 | ||
41 | #endif /* SQUID_ACLDESTINATIONIP_H */ | |
42 |