summaryrefslogtreecommitdiff
path: root/include/anope.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2023-04-28 00:28:16 +0100
committerSadie Powell <sadie@witchery.services>2023-07-11 16:11:57 +0100
commit7f8a0c9d33afa26047f02a2032e4d101bfbfac50 (patch)
tree51ac353f1950a9a61f110f9d0f1008b1c9a0e856 /include/anope.h
parentcc23f6dc011fa5b548dd4a1416bd6dee107ba7b6 (diff)
Allow Anope to look up multiple DNS results.
For fixing bug 1756.
Diffstat (limited to 'include/anope.h')
-rw-r--r--include/anope.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h
index f65acad48..ed894c4ce 100644
--- a/include/anope.h
+++ b/include/anope.h
@@ -548,6 +548,13 @@ namespace Anope
*/
extern Anope::string Resolve(const Anope::string &host, int type);
+ /** Does a blocking dns query and returns all IPs.
+ * @param host host to look up
+ * @param type inet addr type
+ * @return A list of all IPs that the host resolves to
+ */
+ extern std::vector<Anope::string> ResolveMultiple(const Anope::string &host, int type);
+
/** Generate a string of random letters and numbers
* @param len The length of the string returned
*/