fix: iOS代理

This commit is contained in:
guozhigq
2024-01-08 23:41:12 +08:00
parent 7cf9e66a5b
commit 79729e4b30

View File

@ -108,16 +108,16 @@ class Request {
systemProxyPort = systemProxyPort =
localCache.get(LocalCacheKey.systemProxyPort, defaultValue: ''); localCache.get(LocalCacheKey.systemProxyPort, defaultValue: '');
dio = Dio(options) dio = Dio(options);
/// fix 第三方登录 302重定向 跟iOS代理问题冲突 /// fix 第三方登录 302重定向 跟iOS代理问题冲突
..httpClientAdapter = Http2Adapter( // ..httpClientAdapter = Http2Adapter(
ConnectionManager( // ConnectionManager(
idleTimeout: const Duration(milliseconds: 10000), // idleTimeout: const Duration(milliseconds: 10000),
onClientCreate: (_, ClientSetting config) => // onClientCreate: (_, ClientSetting config) =>
config.onBadCertificate = (_) => true, // config.onBadCertificate = (_) => true,
), // ),
); // );
/// 设置代理 /// 设置代理
if (enableSystemProxy) { if (enableSystemProxy) {