Revision dfc29877
Added by Stephen Benjamin almost 6 years ago
lib/launcher.rb | ||
---|---|---|
|
||
if Proxy::SETTINGS.tls_disabled_versions
|
||
Proxy::SETTINGS.tls_disabled_versions.each do |version|
|
||
constant = OpenSSL::SSL.const_get("OP_NO_TLSv#{version.gsub(/\./, '_')}") rescue nil
|
||
constant = OpenSSL::SSL.const_get("OP_NO_TLSv#{version.to_s.gsub(/\./, '_')}") rescue nil
|
||
|
||
if constant
|
||
logger.info "TLSv#{version} will be disabled."
|
Also available in: Unified diff
fixes #23917 - convert tls version to string
If someone specifies settings in YAML like this:
```yaml
tls_disabled_versions:
- 1.1
```
Ruby will interpret it as a float. Currently, it must be quoted.
@Ivan Necas added a to_s to the dynflow smart proxy plugin to fix this,
this commit makes smart proxy behavior the same.