mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
do not merge UDP failed pings when falling back to TCP on Win & Mac to get the ping count right (as requested)
This commit is contained in:
parent
837c9a0640
commit
fa810de8f0
@ -35,7 +35,6 @@ public class CombinedUnprivilegedPinger implements Pinger {
|
||||
return udpResult.merge(udpPinger.ping(subject, count - udpCountInitialCount));
|
||||
|
||||
// fallback to TCP - it may detect some hosts UDP cannot
|
||||
PingResult tcpResult = tcpPinger.ping(subject, count);
|
||||
return tcpResult.merge(udpResult);
|
||||
return tcpPinger.ping(subject, count);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user