Skip to content

Commit

Permalink
Added in filter so that we only allow connections to cassandra node w…
Browse files Browse the repository at this point in the history
…e know about
  • Loading branch information
daryl-d committed Nov 13, 2018
1 parent cd6c286 commit cc9a430
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ func configureProvider(d *schema.ResourceData) (interface{}, error) {

cluster.ProtoVersion = protocolVersion

cluster.HostFilter = gocql.WhiteListHostFilter(hosts...)

cluster.DisableInitialHostLookup = true

if useSSL {
Expand Down

0 comments on commit cc9a430

Please sign in to comment.