mirror of
https://github.com/openbullet/openbullet.git
synced 2023-10-21 07:33:42 -05:00
Fix wrong random UA being sent on CF Bypass
This commit is contained in:
@@ -153,7 +153,7 @@ namespace RuriLib
|
||||
httpClient.DefaultRequestHeaders.Add("User-Agent", ReplaceValues(userAgent, data));
|
||||
|
||||
// Solve the CF challenge
|
||||
var result = cf.Solve(httpClient, handler, uri).Result;
|
||||
var result = cf.Solve(httpClient, handler, uri, userAgent: ReplaceValues(userAgent, data)).Result;
|
||||
if (result.Success)
|
||||
{
|
||||
data.Log(new LogEntry($"[Success] Protection bypassed: {result.DetectResult.Protection}", Colors.GreenYellow));
|
||||
|
||||
Reference in New Issue
Block a user