Skip to content

Commit

Permalink
add comments before publishing new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan committed Apr 11, 2018
1 parent 4a6bfa1 commit b7cd92e
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -43,6 +43,8 @@ public final class DomainPinningPolicy {
throws MalformedURLException {
// Run some sanity checks on the configuration
// Check if the hostname seems valid
// DomainValidator.getInstance(true) allows TrustKit to include localhost in the valid domains
// see https://github.com/datatheorem/TrustKit-Android/issues/25
DomainValidator domainValidator = DomainValidator.getInstance(true);
if (!domainValidator.isValid(hostname)) {
throw new ConfigurationException("Tried to pin an invalid domain: " + hostname);
Expand Down

0 comments on commit b7cd92e

Please sign in to comment.