rex-socket 0.1.28 → 0.1.29

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: 324deceef4e08a04cdfee10fa7fcda792dfee027e2a83792492da6294a2a5b18
4
- data.tar.gz: bdb5cdb27e4cf46c90fe0c5ace17347c47fcb257497fba247c18a627afe9b536
3
+ metadata.gz: 4d113479436231734487199007f644118a5e448686dc84c62c32d2cf0d8a3610
4
+ data.tar.gz: 10c82f7d6ec3995321f87e0414f5cb27bd2b991764f051be0f2014473a53b255
5
5
  SHA512:
6
- metadata.gz: 5b161f04cb05e3e44c6fd0034e4a5fc062d229bc582937a525f44230706a5c3b90c0abbafa71d359453040667034a76a597d93ecb153cf65abec00f4dfc8ef1d
7
- data.tar.gz: 8c2238d6a358ef0dbb2cb513ca723d3fd97ea5ce97c64c8e79f7f166764d50a68cb0721e23a3701086d3418e7caac937366f2ab2b0fc887b54e742408cd37312
6
+ metadata.gz: 5c6cec9b71223968043ea4b96ac78f750ba27ec1ca087b5deda2ee3717c76340f96e8d730f9e16594732213d2429265891a8dd1dc64b02dc3bd6b1f4adec634e
7
+ data.tar.gz: c21137181b5ef64f7599c5ceb27f233c10d48a198a9ec0c5bffbe64efb6f02024eab4e408a5de7585c1a46dbff864f087dbee3cf32bdcd3129ad518db225d779
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -134,7 +134,7 @@ class RangeWalker
134
134
  #
135
135
  # @return [Hash<Symbol, String>] The next host in the range
136
136
  def next_host
137
- return false if not valid?
137
+ return unless valid?
138
138
 
139
139
  if (@curr_addr > @ranges[@curr_range_index].stop)
140
140
  # Then we are at the end of this range. Grab the next one.
@@ -247,7 +247,7 @@ class RangeWalker
247
247
  def expand_cidr(arg)
248
248
  start,stop = Rex::Socket.cidr_crack(arg)
249
249
  if !start or !stop
250
- return false
250
+ return
251
251
  end
252
252
  range = Range.new
253
253
  range.start = Rex::Socket.addr_atoi(start)
@@ -399,7 +399,7 @@ class RangeWalker
399
399
  return if !valid_cidr_chars?(arg)
400
400
 
401
401
  ip_part, mask_part = arg.split("/")
402
- return false unless (0..32).include? mask_part.to_i
402
+ return unless (0..32).include? mask_part.to_i
403
403
  if ip_part =~ /^\d{1,3}(\.\d{1,3}){1,3}$/
404
404
  return unless Rex::Socket.is_ipv4?(ip_part)
405
405
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.28"
3
+ VERSION = "0.1.29"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-socket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
metadata.gz.sig CHANGED
Binary file