fix: iOS代理
This commit is contained in:
@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user