File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,8 @@ def setup_http_option
270
270
OpenSSL ::SSL ::VERIFY_PEER
271
271
end
272
272
opt [ :ciphers ] = @tls_ciphers
273
- opt [ :min_version ] = Fluent ::TLS ::DEFAULT_VERSION
274
- opt [ :max_version ] = @tls_version
273
+ opt [ :min_version ] = Fluent ::TLS ::METHODS_MAP [ @tls_version ]
274
+ opt [ :max_version ] = Fluent :: TLS :: METHODS_MAP [ @tls_version ]
275
275
end
276
276
277
277
opt
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ module TLS
48
48
MIN_MAX_AVAILABLE = false
49
49
map
50
50
end
51
- private_constant :METHODS_MAP
51
+ # private_constant :METHODS_MAP
52
52
53
53
# Helper for old syntax/method support:
54
54
# ruby 2.4 uses ssl_version= but this method is now deprecated.
Original file line number Diff line number Diff line change @@ -501,6 +501,7 @@ def server_config
501
501
# WEBrick supports self-generated self-signed certificate
502
502
config [ :SSLEnable ] = true
503
503
config [ :SSLCertName ] = [ [ "CN" , WEBrick ::Utils ::getservername ] ]
504
+ config [ :SSLMaxVersion ] = OpenSSL ::SSL ::TLS1_3_VERSION
504
505
config
505
506
end
506
507
@@ -512,6 +513,7 @@ def test_write_with_https
512
513
d = create_driver ( %[
513
514
endpoint https://127.0.0.1:#{ server_port } /test
514
515
tls_verify_mode none
516
+ tls_version TLSv1_3
515
517
ssl_timeout 2s
516
518
] )
517
519
d . run ( default_tag : 'test.http' ) do
You can’t perform that action at this time.
0 commit comments