Skip to content

Commit

Permalink
Add support for TLSServerName for HTTP health checks
Browse files Browse the repository at this point in the history
Signed-off-by: Radek Dvořák <radek.dvorak@gmail.com>
  • Loading branch information
RadekDvorak authored and eikenb committed Jan 24, 2022
1 parent 465f3d3 commit c3446d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions check.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func (c *CheckRunner) updateCheckHTTP(latestCheck *api.HealthCheck, checkHash ty
definition *api.HealthCheckDefinition, updated, added checkIDSet) bool {
tlsConfig := c.tlsConfig.Clone()
tlsConfig.InsecureSkipVerify = definition.TLSSkipVerify
tlsConfig.ServerName = definition.TLSServerName

http := &consulchecks.CheckHTTP{
Notify: c,
Expand Down

0 comments on commit c3446d4

Please sign in to comment.