Skip to content

Commit b8f1f45

Browse files
committed
Disable adding random user-agents
1 parent 720ec94 commit b8f1f45

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TbsCore/Core/WebBrowserInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private void SetupChromeDriver(Access.Access access, string username, string ser
9191
options.AddArgument("ignore-certificate-errors"); // --ignore-certificate-errors ?
9292
}
9393

94-
options.AddArgument($"--user-agent={access.UserAgent}");
94+
//options.AddArgument($"--user-agent={access.UserAgent}");
9595

9696
//options.AddArguments("--disable-logging");
9797
//options.AddArguments("--disable-metrics");

TbsCore/Helpers/HttpHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static HtmlAgilityPack.HtmlDocument SendGetReq(Account acc, string url)
6262
public static void InitRestClient(Access access, RestClient client)
6363
{
6464
client.Timeout = 5000;
65-
client.UserAgent = access.UserAgent;
65+
//client.UserAgent = access.UserAgent;
6666

6767
// Set proxy
6868
if (!string.IsNullOrEmpty(access.Proxy))

0 commit comments

Comments
 (0)