lan_scanner 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lan_scanner/version.rb +1 -1
- data/lib/lan_scanner.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c350716484a74b1fad8f2ffaaa1a9b3e92fdb1de28f836da36838f321466b063
|
4
|
+
data.tar.gz: f05f7379de03ab450fb8bfdb1216c2f8d8e8211f42249dec4afe342b07147cd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14c3c377dbff679c59716fdd672ac30240e545463d7e8bfe47ba44f8f6a7aacc7ac7549cd97d1acb169f1a2276aec345f85889da4793672807dd1d7addc29157
|
7
|
+
data.tar.gz: 3f2514eaa0d6b3870db3f1b2f65a5bd1152d3b29ebb018d8901faf68a013a59142c5e98591d9e97aa5d785deebfd5ba1f51985ec398a4ca9c66f4fa3d60b11a8
|
data/lib/lan_scanner/version.rb
CHANGED
data/lib/lan_scanner.rb
CHANGED
@@ -63,7 +63,7 @@ module LanScanner
|
|
63
63
|
offline_addresses = addresses.reject { |a| online_hosts.map(&:remote_address).include?(a) }
|
64
64
|
# check offline addresses again with expensive check
|
65
65
|
if expensive
|
66
|
-
`nmap -
|
66
|
+
`nmap -sP #{offline_addresses.join(' ')} -oX "#{tmp_file}"`
|
67
67
|
online_hosts += _parse_nmap_xml [File.read(tmp_file)]
|
68
68
|
offline_addresses = addresses.reject { |a| online_hosts.map(&:remote_address).include?(a) }
|
69
69
|
end
|