Skip to content

Commit 2d18113

Browse files
committed
remove useless check since already done in readHandshakePacket()
1 parent 1ef9cde commit 2d18113

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

connector.go

-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ func (c *connector) Connect(ctx context.Context) (driver.Conn, error) {
137137
return nil, err
138138
}
139139

140-
if mc.cfg.TLS != nil && serverCapabilities&clientSSL == 0 {
141-
return nil, fmt.Errorf("TLS is required, but server doesn't support it")
142-
}
143-
144140
if plugin == "" {
145141
plugin = defaultAuthPlugin
146142
}

0 commit comments

Comments
 (0)