mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 03:32:16 -05:00
This commit is contained in:
parent
33d8d3bc24
commit
c21097af65
@ -86,7 +86,7 @@ public final class TrustManagerFactory {
|
|||||||
try {
|
try {
|
||||||
defaultTrustManager.checkServerTrusted(chain, authType);
|
defaultTrustManager.checkServerTrusted(chain, authType);
|
||||||
} catch (CertificateException e) {
|
} catch (CertificateException e) {
|
||||||
localTrustManager.checkServerTrusted(chain, authType);
|
localTrustManager.checkServerTrusted(new X509Certificate[] {chain[0]}, authType);
|
||||||
}
|
}
|
||||||
if (!DomainNameChecker.match(chain[0], mHost)) {
|
if (!DomainNameChecker.match(chain[0], mHost)) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user