mirror of
https://github.com/wanghongenpin/proxypin.git
synced 2026-06-03 17:25:48 +08:00
增加搜索功能,socket写入中延迟关闭,完善证书安装引导
This commit is contained in:
@@ -38,6 +38,11 @@ class CertificateManager {
|
||||
|
||||
static X509CertificateData get caCert => _caCert;
|
||||
|
||||
/// 清除缓存
|
||||
static void cleanCache() {
|
||||
_certificateMap.clear();
|
||||
}
|
||||
|
||||
/// 获取域名自签名证书
|
||||
static Future<SecurityContext> getCertificateContext(String host) async {
|
||||
var cer = _certificateMap[host];
|
||||
|
||||
Reference in New Issue
Block a user