Skip to content

Commit

Permalink
fix: set admin.Connector.Dialer.SASLMechanism if TLS isn't enabled (#195
Browse files Browse the repository at this point in the history
)
  • Loading branch information
alkur-gh authored May 20, 2024
1 parent 05b587a commit aedd232
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/admin/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func NewConnector(config ConnectorConfig) (*Connector, error) {

if !config.TLS.Enabled {
connector.Dialer = kafka.DefaultDialer
connector.Dialer.SASLMechanism = mechanismClient
} else {
var certs []tls.Certificate
var caCertPool *x509.CertPool
Expand Down

0 comments on commit aedd232

Please sign in to comment.