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

SOCKS5 PROXY SUPPORT #2062

Closed
xAffan opened this issue Dec 7, 2023 · 1 comment
Closed

SOCKS5 PROXY SUPPORT #2062

xAffan opened this issue Dec 7, 2023 · 1 comment

Comments

@xAffan
Copy link

xAffan commented Dec 7, 2023

Request Statement

It would be able to connect to socks proxies such as tor. SOCKS5h specifically (Socks5 with dns resolution)

Solution Brainstorm

final Dio Dio = Dio()
..httpClientAdapter = Http2Adapter(
ConnectionManager(idleTimeout: const Duration(seconds: 10),
onClientCreate: (_, config) =>
config.proxy = Uri.parse('socks5h://127.0.0.1:9050'),
),
);
This code should work; however, it tries to connect as if its an http proxy.

@xAffan xAffan added the s: feature This issue indicates a feature request label Dec 7, 2023
@AlexV525
Copy link
Member

AlexV525 commented Dec 7, 2023

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 7, 2023
@AlexV525 AlexV525 added i: out of support and removed s: feature This issue indicates a feature request labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants