Make DnsNameResolver.cnameCache() public (#11520)

Motivation:

Users may want to clear the cache manually. For this it should be possible to access it first.

Modifications:

Change the visibility to public

Result:

Be able to clear the cache manually. Related to https://github.com/netty/netty/issues/11519
This commit is contained in:
Norman Maurer 2021-07-27 12:05:28 +02:00 committed by GitHub
parent e1be815a94
commit 412af40f5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -576,7 +576,7 @@ public class DnsNameResolver extends InetNameResolver {
/**
* Returns the {@link DnsCnameCache}.
*/
DnsCnameCache cnameCache() {
public DnsCnameCache cnameCache() {
return cnameCache;
}