mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 22:39:11 +00:00
9 lines
270 B
Dart
9 lines
270 B
Dart
|
import 'dart:io';
|
||
|
|
||
|
class MyHttpOverrides extends HttpOverrides {
|
||
|
@override
|
||
|
HttpClient createHttpClient(SecurityContext? context){
|
||
|
return super.createHttpClient(context)
|
||
|
..badCertificateCallback = (X509Certificate cert, String host, int port) => true;
|
||
|
}
|
||
|
}
|