falcon 0.33.4 → 0.33.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/falcon/configurations/tls.rb +12 -0
- data/lib/falcon/hosts.rb +0 -12
- data/lib/falcon/version.rb +1 -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: 19e807a12e49edbeeb98689058a0a2c90b9dac4c1a6325ffb73a694a48982c4c
|
4
|
+
data.tar.gz: b31de1affbba65956932eb910a471c15e6eb5045f2b08af6fc1f41ec45fbc016
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9be79f33b6c4db25ad42aaee2cb2992bafc7f4a3a6a59431671dd280f503f53d1da51001d3c9a30d84c0de6d53303a19abca729e2184438d6caf909e32991bf
|
7
|
+
data.tar.gz: fcf92a02c903a6bc6658d4e6900e4065a7ee6a7fcc4c9753d0d439d9b41a5df52521e90bb2339e7e8e379085e94f1e2c54807ff69dfe8d233bc1c1c8400e6e03
|
@@ -34,6 +34,18 @@ add(:tls) do
|
|
34
34
|
|
35
35
|
context.session_id_context = ssl_session_id
|
36
36
|
|
37
|
+
context.alpn_select_cb = lambda do |protocols|
|
38
|
+
if protocols.include? "h2"
|
39
|
+
return "h2"
|
40
|
+
elsif protocols.include? "http/1.1"
|
41
|
+
return "http/1.1"
|
42
|
+
elsif protocols.include? "http/1.0"
|
43
|
+
return "http/1.0"
|
44
|
+
else
|
45
|
+
return nil
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
37
49
|
context.set_params(
|
38
50
|
verify_mode: OpenSSL::SSL::VERIFY_NONE,
|
39
51
|
)
|
data/lib/falcon/hosts.rb
CHANGED
@@ -63,18 +63,6 @@ module Falcon
|
|
63
63
|
|
64
64
|
context.session_id_context = "falcon"
|
65
65
|
|
66
|
-
context.alpn_select_cb = lambda do |protocols|
|
67
|
-
if protocols.include? "h2"
|
68
|
-
return "h2"
|
69
|
-
elsif protocols.include? "http/1.1"
|
70
|
-
return "http/1.1"
|
71
|
-
elsif protocols.include? "http/1.0"
|
72
|
-
return "http/1.0"
|
73
|
-
else
|
74
|
-
return nil
|
75
|
-
end
|
76
|
-
end
|
77
|
-
|
78
66
|
context.set_params(
|
79
67
|
ciphers: SERVER_CIPHERS,
|
80
68
|
verify_mode: OpenSSL::SSL::VERIFY_NONE,
|
data/lib/falcon/version.rb
CHANGED