diff --git a/src/com/seafile/seadroid2/SSLTrustManager.java b/src/com/seafile/seadroid2/SSLTrustManager.java index a38fb1b94..b54410219 100644 --- a/src/com/seafile/seadroid2/SSLTrustManager.java +++ b/src/com/seafile/seadroid2/SSLTrustManager.java @@ -236,7 +236,7 @@ private void validateHostName(List chain) throws CertificateExc // where as the DefaultHostnameVerifier will always try to lookup IP addresses via the DNS. X509HostnameVerifier mHostnameVerifier = new BrowserCompatHostnameVerifier(); try { - mHostnameVerifier.verify(account.server, cert); + mHostnameVerifier.verify(account.getServerHost(), cert); } catch (SSLException e) { throw new CertificateException(); }