lib/datacenter.rb in datacenter-0.4.4 vs lib/datacenter.rb in datacenter-0.5.0
- old
+ new
@@ -8,6 +8,11 @@
extend ClassConfig
attr_config :logger, Logger.new('/dev/null')
attr_config :process_cache_expiration, 2
end
-Dir.glob(File.expand_path('datacenter/**/*.rb', File.dirname(__FILE__))).sort.each { |f| require f }
\ No newline at end of file
+Dir.glob(File.expand_path('datacenter/**/*.rb', File.dirname(__FILE__))).sort.each { |f| require f }
+
+if RUBY_ENGINE == 'jruby'
+ Net::SSH::Transport::Algorithms::ALGORITHMS.values.each { |algs| algs.reject! { |a| a =~ /^ecd(sa|h)-sha2/ } }
+ Net::SSH::KnownHosts::SUPPORTED_TYPE.reject! { |t| t =~ /^ecd(sa|h)-sha2/ }
+end