Skip to content

Default TLS ServerName to the host in the DSN. #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2014

Conversation

metcalf
Copy link
Contributor

@metcalf metcalf commented Oct 8, 2014

A TLS configuration must either have a ServerName or specify InsecureSkipVerify. In most cases, the ServerName value will match the host part of the address in the DSN. This change updates the DSN parser to default the ServerName to the host value provided unless InsecureSkipVerify is specified.

A TLS configuration must either have a ServerName or specify
InsecureSkipVerify. In most cases, the ServerName value will
match the host part of the address in the DSN. This change
updates the DSN parser to default the ServerName to the host
value provided unless InsecureSkipVerify is specified.
@julienschmidt
Copy link
Member

LGTM

julienschmidt added a commit that referenced this pull request Dec 10, 2014
Default TLS ServerName to the host in the DSN.
@julienschmidt julienschmidt merged commit cebeb35 into go-sql-driver:master Dec 10, 2014
@julienschmidt julienschmidt added this to the v1.3 milestone Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants