Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #535 from choria-io/533.1
Browse files Browse the repository at this point in the history
(#533) ensure the context isn't used when ssl is disabled
  • Loading branch information
ripienaar committed Nov 22, 2018
2 parents 460b810 + cfd6263 commit 54a8210
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/mcollective/connector/nats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def connect
:max_reconnect_attempts => -1,
:reconnect_time_wait => 1,
:dont_randomize_servers => !choria.randomize_middleware_servers?,
:name => @config.identity,
:tls => {
:context => choria.ssl_context
}
:name => @config.identity
}

if $choria_unsafe_disable_nats_tls # rubocop:disable Style/GlobalVars
Expand Down

0 comments on commit 54a8210

Please sign in to comment.