From d12554ffcef48465c7a9aaa000ad51bab14de726 Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sun, 22 Mar 2020 21:40:29 +0000 Subject: [PATCH] More extreme canonical forms --- .../test/java/okhttp3/internal/tls/HostnameVerifierTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.java b/okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.java index c78239fa5bcc..ff3ed62b291e 100644 --- a/okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.java +++ b/okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.java @@ -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() {