Skip to content

Commit

Permalink
correct hostname validation method
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan676 committed Apr 24, 2015
1 parent 2b5c80e commit 5583968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/seafile/seadroid2/SSLTrustManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private void validateHostName(List<X509Certificate> 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();
}
Expand Down

0 comments on commit 5583968

Please sign in to comment.