etunnel 1.7.39 → 1.7.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 +4 -4
- data/lib/etunnel.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b13a01f02fe2479e830fa0e88f13752b74e822adaf0a64360075eb9e88b93bf
|
|
4
|
+
data.tar.gz: a03e4606a0f59ca562ab40f3e05ac873144ff23586a569455bc22d9dd4139db8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2a2a395fbde02c964c8f248d95248abcaaa5f8d51572b5718d25a9ce82b668237152227d993664c3dc3edaab1dac797614f61487da03cd2e6f3ef08e475739d4
|
|
7
|
+
data.tar.gz: 90cbfb3c89599d99031dc105ec4aab4c147f98902bc9cfb6601b1dc35e3c5b38f80f5697ac730cb42e3f48ccd6e323c3cf6d8fa32314eccf8c87635fba733e38
|
data/lib/etunnel.rb
CHANGED
|
@@ -31,6 +31,9 @@ MAXP = 32_768
|
|
|
31
31
|
HOP = %w[connection transfer-encoding keep-alive upgrade proxy-connection te trailer content-length host].freeze
|
|
32
32
|
|
|
33
33
|
module Etunnel
|
|
34
|
+
# SDK version reported in hello.version (stamped by scripts/bump-release.py).
|
|
35
|
+
VERSION = '1.7.40'.freeze
|
|
36
|
+
|
|
34
37
|
def self.frame(kind, sid, payload)
|
|
35
38
|
[kind].pack('C') + [sid].pack('N') + [payload.bytesize].pack('N') + payload
|
|
36
39
|
end
|
|
@@ -118,7 +121,7 @@ module Etunnel
|
|
|
118
121
|
queue << [:close, nil]
|
|
119
122
|
end
|
|
120
123
|
|
|
121
|
-
hello = { type: 'hello', proto: 1, client:
|
|
124
|
+
hello = { type: 'hello', proto: 1, client: "etunnel-ruby/#{VERSION}", version: VERSION }
|
|
122
125
|
hello[:token] = token if token
|
|
123
126
|
hello[:subdomain] = subdomain if subdomain
|
|
124
127
|
hello[:resume] = resume if resume && !resume.empty?
|