Skip to content

Commit b7cd92e

Browse files
author
Jordan
committed
add comments before publishing new version
1 parent 4a6bfa1 commit b7cd92e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

trustkit/src/main/java/com/datatheorem/android/trustkit/config/DomainPinningPolicy.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ public final class DomainPinningPolicy {
4343
throws MalformedURLException {
4444
// Run some sanity checks on the configuration
4545
// Check if the hostname seems valid
46+
// DomainValidator.getInstance(true) allows TrustKit to include localhost in the valid domains
47+
// see https://github.com/datatheorem/TrustKit-Android/issues/25
4648
DomainValidator domainValidator = DomainValidator.getInstance(true);
4749
if (!domainValidator.isValid(hostname)) {
4850
throw new ConfigurationException("Tried to pin an invalid domain: " + hostname);

0 commit comments

Comments
 (0)