Use the right variable

(cherry picked from commit e1e0ff5ead35ca4dd2d86775bb2943f1c8a44790)
This commit is contained in:
Stephen Paul Weber 2024-10-30 09:59:48 -05:00 committed by Arne
parent fbe1d7c015
commit 4624a20084

View file

@ -239,8 +239,8 @@ public class Resolver {
((ReliableDnsClient) client).setUseHardcodedDnsServers(false);
}
final AbstractDnsClient dnssecclient = DnssecResolverApi.INSTANCE.getClient();
if (client instanceof ReliableDnsClient) {
((ReliableDnsClient) client).setUseHardcodedDnsServers(false);
if (dnssecclient instanceof ReliableDnsClient) {
((ReliableDnsClient) dnssecclient).setUseHardcodedDnsServers(false);
}
}