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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13967d5ff3f5db3f3da4faaca3350dd6b40021d2ec3bbe748d6c7cd0fe489feb
4
- data.tar.gz: da6b68936d13c57e513de23e346765b73de7c5d4bca3baf446c4d2b301efce80
3
+ metadata.gz: c350716484a74b1fad8f2ffaaa1a9b3e92fdb1de28f836da36838f321466b063
4
+ data.tar.gz: f05f7379de03ab450fb8bfdb1216c2f8d8e8211f42249dec4afe342b07147cd6
5
5
  SHA512:
6
- metadata.gz: 819dc36fd94db53195396fdda4863a99745f2a9750dd6cadcd959048054fe9a14b4a5f9655ec609ed92d17dc6ed0f8b7ec39a8b3d0c3397634755b8087e355b1
7
- data.tar.gz: 819cb54130e49ef425ed211c5ad606fe5c9fa8462bdc88fd04e519570b2c605a3c7dbf57aa1f1517182a4e60aea8cce2323911ce1018f006f8b328aa8631e77e
6
+ metadata.gz: 14c3c377dbff679c59716fdd672ac30240e545463d7e8bfe47ba44f8f6a7aacc7ac7549cd97d1acb169f1a2276aec345f85889da4793672807dd1d7addc29157
7
+ data.tar.gz: 3f2514eaa0d6b3870db3f1b2f65a5bd1152d3b29ebb018d8901faf68a013a59142c5e98591d9e97aa5d785deebfd5ba1f51985ec398a4ca9c66f4fa3d60b11a8
@@ -1,3 +1,3 @@
1
1
  module LanScanner
2
- VERSION = '0.0.4'.freeze
2
+ VERSION = '0.0.5'.freeze
3
3
  end
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 -Pn #{offline_addresses.join(' ')} -oX "#{tmp_file}"`
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lan_scanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthäus J. N. Beyrle