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
How to setup and use the http/https/socks5 proxy to connect IMAP/POP3 server? #169
Comments
What's your use-case? If you have set up a proxy on your system, this should be transparent to any network app as far as I understand.... |
This seems to be an problem for Dart and Flutter, compare for example
I have found this GPL-licensed library that allows to connect via Socks5: https://github.com/v0l/socks5 One idea could be to abstract sockets in enough_mail and allow clients to specify a Thoughts? Ideas? Suggestions? |
It can be done like the dio package, allowing proxy settings https://pub.dev/packages/dio#using-proxy import 'package:dio/dio.dart';
import 'package:dio/adapter.dart';
...
(dio.httpClientAdapter as DefaultHttpClientAdapter).onHttpClientCreate = (client) {
// config the http client
client.findProxy = (uri) {
//proxy all request to localhost:8888
return 'PROXY localhost:8888';
};
// you can also create a new HttpClient to dio
// return HttpClient();
}; |
Dio just exposes the The underlying question is:
|
I have a same question.. (maybe it's so late..? lol) |
Has this problem been solved? |
I checked the enough_mail document and no such content.
The text was updated successfully, but these errors were encountered: