rex-socket 0.1.32 → 0.1.35
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/verify.yml +5 -16
- data/lib/rex/socket/version.rb +1 -1
- data/lib/rex/socket.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1517a6b3b1b5f2e63572e2721c55364746b819c63cf539e34031df7bf41a68e
|
4
|
+
data.tar.gz: 168fc65032c5c98b1dfdc54525f4267e4f6e1f4c568572e85d879370274ec474
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae63e9bab2bf9e22dacbc9c18144e68a1a355a253d3a2ff650020a7258c1b1c7eef5a0e19acd013c80edf71f839c8f8adcd2e4dcbe6a5e5edbd410846b53b4c
|
7
|
+
data.tar.gz: e8687039de9392d0fbb99956119a3c7828c06a3d07b4e72840be18992ca2c9cc70c5f4a7e3768bf31f43f3a055a3b3e9231761240c88d1939fc795acdc1fecd5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -10,17 +10,17 @@ on:
|
|
10
10
|
|
11
11
|
jobs:
|
12
12
|
test:
|
13
|
-
runs-on: ubuntu-
|
13
|
+
runs-on: ubuntu-18.04
|
14
14
|
timeout-minutes: 40
|
15
15
|
|
16
16
|
strategy:
|
17
17
|
fail-fast: true
|
18
18
|
matrix:
|
19
19
|
ruby:
|
20
|
-
- 2.5
|
21
20
|
- 2.6
|
22
21
|
- 2.7
|
23
22
|
- 3.0
|
23
|
+
- 3.1
|
24
24
|
test_cmd:
|
25
25
|
- bundle exec rspec
|
26
26
|
|
@@ -32,23 +32,12 @@ jobs:
|
|
32
32
|
- name: Checkout code
|
33
33
|
uses: actions/checkout@v2
|
34
34
|
|
35
|
-
-
|
35
|
+
- name: Setup Ruby
|
36
|
+
uses: ruby/setup-ruby@v1
|
36
37
|
with:
|
37
38
|
ruby-version: ${{ matrix.ruby }}
|
39
|
+
bundler-cache: true
|
38
40
|
|
39
|
-
- name: Setup bundler
|
40
|
-
run: |
|
41
|
-
gem install bundler
|
42
|
-
- uses: actions/cache@v2
|
43
|
-
with:
|
44
|
-
path: vendor/bundle
|
45
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
46
|
-
restore-keys: |
|
47
|
-
${{ runner.os }}-gems-
|
48
|
-
- name: Bundle install
|
49
|
-
run: |
|
50
|
-
bundle config path vendor/bundle
|
51
|
-
bundle install --jobs 4 --retry 3
|
52
41
|
- name: ${{ matrix.test_cmd }}
|
53
42
|
run: |
|
54
43
|
echo "${CMD}"
|
data/lib/rex/socket/version.rb
CHANGED
data/lib/rex/socket.rb
CHANGED
@@ -184,6 +184,8 @@ module Socket
|
|
184
184
|
# @param hostname [String] A hostname or ASCII IP address
|
185
185
|
# @return [Array<String>]
|
186
186
|
def self.getaddresses(hostname, accept_ipv6 = true)
|
187
|
+
raise ::SocketError, 'getaddrinfo: nodename nor servname provided, or not known' if hostname.nil?
|
188
|
+
|
187
189
|
if hostname =~ MATCH_IPV4 || (accept_ipv6 && hostname =~ MATCH_IPV6)
|
188
190
|
return [hostname]
|
189
191
|
end
|
@@ -821,4 +823,3 @@ end
|
|
821
823
|
SHUT_RDWR = ::Socket::SHUT_RDWR
|
822
824
|
SHUT_RD = ::Socket::SHUT_RD
|
823
825
|
SHUT_WR = ::Socket::SHUT_WR
|
824
|
-
|
data.tar.gz.sig
CHANGED
Binary file
|
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.
|
4
|
+
version: 0.1.35
|
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:
|
96
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: rake
|
metadata.gz.sig
CHANGED
Binary file
|