From f7ccde26382063ca2a84adf146f9332683a31189 Mon Sep 17 00:00:00 2001 From: Kamil Monicz Date: Wed, 24 Jun 2020 23:12:29 +0200 Subject: [PATCH] Added missing proxy auth on hCaptcha, Version bump to 1.4.1 --- AntiCaptcha/AntiCaptcha.cs | 7 +++++++ AntiCaptcha/AntiCaptcha.csproj | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/AntiCaptcha/AntiCaptcha.cs b/AntiCaptcha/AntiCaptcha.cs index d70a22f..a370032 100644 --- a/AntiCaptcha/AntiCaptcha.cs +++ b/AntiCaptcha/AntiCaptcha.cs @@ -252,6 +252,13 @@ public async Task SolveHCaptcha(string siteKey, string pageUr } }; + if (proxy.IsAuth()) + { + var taskDictionary = dictionary["task"] as Dictionary; + taskDictionary.Add("proxyLogin", proxy.Login); + taskDictionary.Add("proxyPassword", proxy.Password); + } + var result = await Solve(10, dictionary, cancellationToken).ConfigureAwait(false); if (!result.Success) diff --git a/AntiCaptcha/AntiCaptcha.csproj b/AntiCaptcha/AntiCaptcha.csproj index 4b60085..f2cd844 100644 --- a/AntiCaptcha/AntiCaptcha.csproj +++ b/AntiCaptcha/AntiCaptcha.csproj @@ -9,11 +9,11 @@ https://github.com/Zaczero/AntiCaptcha - 1.4 + 1.4.1 anticaptcha, captcha, solver, google, recaptcha, hcaptcha, geetest, text, image, wrapper, api AntiCaptchaAPI false - 1.4.0.0 + 1.4.1.0 1.4.1.0 MIT https://github.com/Zaczero/AntiCaptcha