rex-socket 0.1.37 → 0.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6fc1471d9de2717bcab7b4808f6011eab4f2a0e9bf9042cec9ce83ddf976d7e
4
- data.tar.gz: 43a4ce0def2c26f141fc9b7025f0b1d413b20d8a8aa8d48206813091a8173e2e
3
+ metadata.gz: f847a88785ee43f98a62bf9deefb5d3e8ee76e21332c36fe51b87dea7a7b7ada
4
+ data.tar.gz: 73046ac7df70a2d4a5b9be9bdf70b7f01ef70e65eb7c38032783b405192682dc
5
5
  SHA512:
6
- metadata.gz: c83bd69270a612453bafd90d508135db979f840f0b3c2aba435e680f5f71b60ee51efeafcb31063b5d91b48b2aad1503446c5c028cd8de666ec2bc10c0768fc1
7
- data.tar.gz: 8f0c03d1038b03a6d32b732674622e0db1acfe47d5b031055c0ab46164908f14b23e373271007996e456d04127dd1f4b8c0ed7f68aa6ade85b633d14a53e6230
6
+ metadata.gz: 31a4f6889c2fdc74e9055ff349264fafc7bebdf569a4047ea0dde3096e91d8904d763a255711c5adc2b63189c0dc3892d3c8007af99555758199472a966f372c
7
+ data.tar.gz: 0c2e1fd6544daada5d628b1a69a8e4345a2a21a03b32dff90bdfe2c04c9725326025d3f59ecde76a7b8b9557f684bd357d7182c51c98f32ca33cc1a29e8e5401
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -27,5 +27,5 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
27
27
 
28
28
  ## Contributing
29
29
 
30
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rex-socket. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
30
+ Bug reports and pull requests are welcome on GitHub at https://github.com/rapid7/rex-socket. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
31
31
 
@@ -81,6 +81,8 @@ class RangeWalker
81
81
 
82
82
  ranges = []
83
83
  parseme.split(', ').map{ |a| a.split(' ') }.flatten.each do |arg|
84
+ # Remove trailing commas that may be unneeded, i.e. '1.1.1.1,'
85
+ arg = arg.sub(/,+$/, '')
84
86
 
85
87
  # Handle IPv6 CIDR first
86
88
  if arg.include?(':') && arg.include?('/')
@@ -128,7 +128,7 @@ begin
128
128
  # extension
129
129
  if self.peerhostname
130
130
  self.sslsock.hostname = self.peerhostname
131
- else !Rex::Socket.dotted_ip?(self.peerhost)
131
+ elsif !Rex::Socket.dotted_ip?(self.peerhost)
132
132
  self.sslsock.hostname = self.peerhost
133
133
  end
134
134
 
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Socket
3
- VERSION = "0.1.37"
3
+ VERSION = "0.1.40"
4
4
  end
5
5
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1 @@
1
- �ޝgZ;��n���6(H���y�!�XSXV\��4އ%�@.�Z
2
- I� ���'2r�:T{�D�����U�)�
3
- ^vΌ������;�@�����/lq�Ү
1
+ P5Kn��� -���#�](e���'�\��덺Ν뺋��uK�-�BN���:WV;�"���eW����i�fy’pCf'��ᗊ$YS8�t���T ͳ
4
- �AX��'�M���o��X���հ�-�mJE�l��fc��V���W"VD1Q��/1�-�_���Zp*�K�_
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.37
4
+ version: 0.1.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -93,7 +93,7 @@ cert_chain:
93
93
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
94
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
95
  -----END CERTIFICATE-----
96
- date: 2022-05-03 00:00:00.000000000 Z
96
+ date: 2022-06-13 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
metadata.gz.sig CHANGED
Binary file