Skip to content

Commit

Permalink
Added missing proxy auth on hCaptcha, Version bump to 1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jun 24, 2020
1 parent adfb4bf commit f7ccde2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions AntiCaptcha/AntiCaptcha.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ public async Task<AntiCaptchaResult> SolveHCaptcha(string siteKey, string pageUr
}
};

if (proxy.IsAuth())
{
var taskDictionary = dictionary["task"] as Dictionary<string, object>;
taskDictionary.Add("proxyLogin", proxy.Login);
taskDictionary.Add("proxyPassword", proxy.Password);
}

var result = await Solve(10, dictionary, cancellationToken).ConfigureAwait(false);

if (!result.Success)
Expand Down
4 changes: 2 additions & 2 deletions AntiCaptcha/AntiCaptcha.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<PackageLicenseUrl></PackageLicenseUrl>
<PackageProjectUrl>https://github.com/Zaczero/AntiCaptcha</PackageProjectUrl>
<PackageIconUrl></PackageIconUrl>
<Version>1.4</Version>
<Version>1.4.1</Version>
<PackageTags>anticaptcha, captcha, solver, google, recaptcha, hcaptcha, geetest, text, image, wrapper, api</PackageTags>
<PackageId>AntiCaptchaAPI</PackageId>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<AssemblyVersion>1.4.0.0</AssemblyVersion>
<AssemblyVersion>1.4.1.0</AssemblyVersion>
<FileVersion>1.4.1.0</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryUrl>https://github.com/Zaczero/AntiCaptcha</RepositoryUrl>
Expand Down

0 comments on commit f7ccde2

Please sign in to comment.