Skip to content

Commit

Permalink
Illegal reflective access by com.sun.mail.util.SocketFetcher eclipse-…
Browse files Browse the repository at this point in the history
…ee4j#124

Co-authored-by: jmehrens <[email protected]>
Co-authored-by: icu5545 <[email protected]>
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Feb 7, 2024
1 parent 14b0d0a commit 9073def
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -808,9 +808,11 @@ private static HostnameVerifier getHostnameVerifier(Properties props, String pre
return null;
}

//Handle all aliases
//Handle all aliases names
if ("any".equals(fqcn)) {
return newHostnameVerifier();
return HostnameChecker.or(
TrustManagerHostnameVerifier.or(
MailHostnameVerifier.of()));
}

if ("sun.security.util.HostnameChecker".equals(fqcn)
Expand Down

0 comments on commit 9073def

Please sign in to comment.