You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A change in fd44003 moved the code for setting p.Host down in the parse
function, resulting in an empty p.Host value at the time of the creation
of p.TLSConfig. I extracted the TLS parsing into a separate function and
moved the TLSConfig creation to the end of the parsing function.
* Fixed#93: servername was not supplied to TLS cfg
A change in fd44003 moved the code for setting p.Host down in the parse
function, resulting in an empty p.Host value at the time of the creation
of p.TLSConfig. I extracted the TLS parsing into a separate function and
moved the TLSConfig creation to the end of the parsing function.
* Added extra test scenario with hostnameincertificate parameter
Describe the bug
I have issues with connecting to a MSSQL server using TLS. I get the error
To Reproduce
using a connection string comparable to this:
and the code
I get the error shown above.
The issue can be reproduced by this test (add it to
msdsn/conn_str_test.go
)Expected behavior
db.Ping()
worksAdditional context
I think the bug was introduced in fd44003
The code for setting
p.Host
was moved down in the parse function, resulting in an emptyp.Host
value at the time of the creation ofp.TLSConfig
.The text was updated successfully, but these errors were encountered: