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

Add Proxy Support to Enhance Accessibility in Restricted Networks #1

Open
onlyclxy opened this issue Nov 6, 2024 · 5 comments
Open

Comments

@onlyclxy
Copy link

onlyclxy commented Nov 6, 2024

Description Currently, users in some regions, particularly in China, are facing issues with IP blocks that prevent them from accessing certain services directly. This has impacted the usability of the software, as direct connections to services like speech.platform.bing.com are not possible without bypassing these restrictions.

Proposed Feature I propose adding a proxy configuration option to the application settings. This would allow users to specify an HTTP or HTTPS proxy through which all traffic will be routed. This feature would be particularly beneficial for users attempting to connect from regions with restricted internet access.

Benefits

Accessibility: Users in restricted regions could utilize the software without interruptions.
Flexibility: It provides more options for users who might need to route traffic for reasons other than censorship, like security policies within corporate networks.
User Experience: Enhancing connectivity options can lead to a broader user base and improve satisfaction for current users who are facing connectivity issues.
Additional Context Many users in China rely on proxies or VPNs to access various internet services due to local regulations and restrictions. Incorporating built-in support for proxy configurations would significantly enhance the functionality and appeal of the software among this user base.

Thank you for considering this feature request. I believe it would make a significant improvement in the accessibility and usability of the software for many users facing network restrictions.

@ganlvtech
Copy link
Owner

I'm sorry that tungstenite-rs doesn't support http or https proxy. snapview/tungstenite-rs#177

I think it may be a little hard for me to implement one by myself. I'll have a try, but don't expect too much from me.

@onlyclxy
Copy link
Author

onlyclxy commented Nov 6, 2024

Thank you so much for your project—it has brought me a lot of enjoyment! I also just tried it myself and realized that indeed, wss doesn't work with an http proxy. I've been using Clash in tun mode, which works somewhat, but it seems implementing this fully would be quite challenging. No worries, though—regardless of the outcome, I really appreciate all your hard work and the amazing code!

@ganlvtech
Copy link
Owner

speech.platform.bing.com is target to an IP in North America, but it seems not be restricted in the region.

@ganlvtech
Copy link
Owner

wss could worked with http proxy. It is just not implemented by tungstenite-rs

@onlyclxy
Copy link
Author

onlyclxy commented Nov 6, 2024

Oh, I see! Looks like we'll have to wait for a solution from the source. Thanks so much for letting me know, and I really appreciate all your efforts!

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

No branches or pull requests

2 participants