From 9f2cd561286784fd000eb8a00f1f80db3185062c Mon Sep 17 00:00:00 2001 From: frosty Date: Fri, 27 Feb 2026 18:32:23 -0500 Subject: added proxying --- src/Infobox/Dictionary.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Infobox/Dictionary.c') diff --git a/src/Infobox/Dictionary.c b/src/Infobox/Dictionary.c index a835899..ca4e5cd 100644 --- a/src/Infobox/Dictionary.c +++ b/src/Infobox/Dictionary.c @@ -1,4 +1,6 @@ #include "Dictionary.h" +#include "../Proxy/Proxy.h" +#include "../Scraping/Scraping.h" #include #include #include @@ -216,6 +218,7 @@ InfoBox fetch_dictionary_data(const char *query) { curl_easy_setopt(curl, CURLOPT_WRITEDATA, &chunk); curl_easy_setopt(curl, CURLOPT_USERAGENT, "Mozilla/5.0"); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); + apply_proxy_settings(curl); if (curl_easy_perform(curl) == CURLE_OK && chunk.size > 0) { htmlDocPtr doc = htmlReadMemory(chunk.memory, chunk.size, url, NULL, -- cgit v1.2.3