// this method must be fast, so we are not checking all the implementations
// currently only icmp pingers may not be supported, so let's check them
if (scannerConfig.selectedPinger.startsWith("pinger.icmp")) {
try {
Pinger icmpPinger = createPinger(scannerConfig.selectedPinger, 250);
icmpPinger.ping(new ScanningSubject(InetAddress.getLocalHost()), 1);
}
catch (Throwable e) {
LOG.info("ICMP pinger failed: " + e);
// win32 will use native pinger, all others get combined UDP+TCP, which doesn't require special privileges
scannerConfig.selectedPinger = Platform.WINDOWS ? "pinger.windows" : "pinger.combined";