rex-socket 0.1.22 → 0.1.23
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +2 -1
- data/lib/rex/socket.rb +8 -3
- data/lib/rex/socket/tcp_server.rb +5 -0
- data/lib/rex/socket/version.rb +1 -1
- 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: 3a33eccf6509da043ca550670f24c63d6ba5570585f3fc2325f5223bc4aff97b
|
4
|
+
data.tar.gz: 6c64549bf503703c498aa43eef47cd8d80c112f770f16d5ae79c3edbf5306eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c14624e4341560dbfbab361160d3f90a0674a9ddc09876f49a34fa5ff0c8e4f7f142b5060a82be8fa4ea80be6a004e733876e6dcba78aebb0bd0641a635a584
|
7
|
+
data.tar.gz: 8ccbaaaf6dc9ae3b53dacdf15d5031581b6efe8b9fb15cf8f841968783ffe67114b71d1b24caf79d0332c5983cf189f02eb7192e01b53caed769a653aba5f4b6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�ùW�N��4xOQlE���Kf���u�n��V{�dUf�p&��ö�x]tP6gU�ҕ����L������Pn�)�$����o}:�l�th�ʈ�!�6~�F�V����L#H��V1N����1<(��^��k��
|
2
|
+
�N�^I���ٚ�!��s۽�'�bO�
|
data/lib/rex/socket.rb
CHANGED
@@ -732,14 +732,19 @@ module Socket
|
|
732
732
|
end
|
733
733
|
|
734
734
|
#
|
735
|
-
# Wrapper around getsockname
|
735
|
+
# Wrapper around getsockname that stores the local address and local port values.
|
736
736
|
#
|
737
737
|
def getlocalname
|
738
|
-
|
738
|
+
if self.localhost.nil? && self.localport.nil?
|
739
|
+
_, self.localhost, self.localport = getsockname
|
740
|
+
end
|
741
|
+
|
742
|
+
family = Socket.is_ipv4?(self.localhost) ? ::Socket::AF_INET : ::Socket::AF_INET6
|
743
|
+
[family, self.localhost, self.localport]
|
739
744
|
end
|
740
745
|
|
741
746
|
#
|
742
|
-
#
|
747
|
+
# Returns peer connection information as an array.
|
743
748
|
#
|
744
749
|
def getpeername_as_array
|
745
750
|
peer_name = nil
|
data/lib/rex/socket/version.rb
CHANGED
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.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Maloney
|
@@ -93,7 +93,7 @@ cert_chain:
|
|
93
93
|
JI/W23RbIRksG2pioMhd4dCXq3FLLlkOV1YfCwWixNB+iIhQPPZVaPNfgPhCn4Dt
|
94
94
|
DeGjje/qA4fkLtRmOtb9PUBq3ToRDE4=
|
95
95
|
-----END CERTIFICATE-----
|
96
|
-
date: 2020-03-
|
96
|
+
date: 2020-03-21 00:00:00.000000000 Z
|
97
97
|
dependencies:
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: bundler
|
metadata.gz.sig
CHANGED
Binary file
|