Skip to content

Commit

Permalink
More extreme canonical forms in Hostname Verifier (#5892)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Mar 23, 2020
1 parent f3538d8 commit 55df7f6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,8 @@ public final class HostnameVerifierTest {
assertThat(verifier.verify("2a03:2880:f003:c07:face:b00c:0:3", session)).isFalse();
assertThat(verifier.verify("127.0.0.1", session)).isFalse();
assertThat(verifier.verify("192.168.1.1", session)).isTrue();
assertThat(verifier.verify("::ffff:192.168.1.1", session)).isTrue();
assertThat(verifier.verify("0:0:0:0:0:FFFF:C0A8:0101", session)).isTrue();
}

@Test public void verifyAsIpAddress() {
Expand Down

0 comments on commit 55df7f6

Please sign in to comment.