Skip to content

Commit aedd232

Browse files
authored
fix: set admin.Connector.Dialer.SASLMechanism if TLS isn't enabled (segmentio#195)
1 parent 05b587a commit aedd232

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/admin/connector.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ func NewConnector(config ConnectorConfig) (*Connector, error) {
131131

132132
if !config.TLS.Enabled {
133133
connector.Dialer = kafka.DefaultDialer
134+
connector.Dialer.SASLMechanism = mechanismClient
134135
} else {
135136
var certs []tls.Certificate
136137
var caCertPool *x509.CertPool

0 commit comments

Comments
 (0)