Skip to content

Commit

Permalink
Merge pull request #4371 from hashicorp/bugfix/gh-4358
Browse files Browse the repository at this point in the history
Remove https://prefix from TLSConfig.Address
  • Loading branch information
mkeeler authored Jul 11, 2018
2 parents 1fe325f + 962f6a1 commit 4d1ead1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,8 @@ func (a *Agent) reloadWatches(cfg *config.RuntimeConfig) error {
if a.config.CAFile != "" {
config.TLSConfig.CAFile = a.config.CAFile
}
config.TLSConfig.Address = addr
// use the original address without the https:// prefix
config.TLSConfig.Address = netaddr.String()
}

if err := wp.RunWithConfig(addr, config); err != nil {
Expand Down

0 comments on commit 4d1ead1

Please sign in to comment.