mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
WindowsPinger should be selected automatically on crippled windows versions as well
git-svn-id: https://ipscan.svn.sourceforge.net/svnroot/ipscan/trunk@271 375186e5-ef17-0410-b0b6-91563547dcda
This commit is contained in:
parent
a4b6d9f61e
commit
2d42e62f77
@ -43,7 +43,6 @@ public class PingerRegistryImpl implements PingerRegistry {
|
||||
pingers.put("pinger.icmp2", ICMPPinger.class);
|
||||
pingers.put("pinger.udp", UDPPinger.class);
|
||||
pingers.put("pinger.tcp", TCPPinger.class);
|
||||
// TODO: implement a windows-specific ICMP pinger for XP SP2 and beyond that uses ping.dll
|
||||
}
|
||||
|
||||
public String[] getRegisteredNames() {
|
||||
@ -88,7 +87,7 @@ public class PingerRegistryImpl implements PingerRegistry {
|
||||
catch (Exception e) {
|
||||
LOG.info("ICMP pingers fail: " + e);
|
||||
// udp should be supported in all configurations
|
||||
scannerConfig.selectedPinger = "pinger.udp";
|
||||
scannerConfig.selectedPinger = Platform.WINDOWS ? "pinger.windows" : "pinger.udp";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user