Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : add proxy support to get a stable connection for regions that cannot have stable connection #4598

Open
candywater opened this issue Dec 7, 2024 · 2 comments

Comments

@candywater
Copy link

proxy support is easy to add
eg. in \Hearthstone Deck Tracker\Core.cs

public static WebProxy proxy = new WebProxy("http://x.x.x.x:xxxx")
{
	//Credentials = new NetworkCredential("username", "password")
};

public static HttpClientHandler httpClientHandler = new HttpClientHandler
{
	Proxy = proxy,
	UseProxy = true
};

// Should be global to application. Always use this one instead of
// instantiating a new HttpClient.
public static readonly HttpClient HttpClient = new HttpClient(httpClientHandler);

however, question is how do we add config point for it ?
should I add it into here (Advanced options) ?

image

@beheh
Copy link
Contributor

beheh commented Dec 13, 2024

Hey there, thanks for the suggestion!

I'm curious, can't you just set your Windows proxy and HDT will use it as well?

@candywater
Copy link
Author

hi @beheh if game also use proxy it would cause a severe delay issue, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants