Skip to content

Commit

Permalink
Properly format autogenerated clusteraddr
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Oct 25, 2017
1 parent 4ac059d commit 55109f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func (c *Core) ClusterTLSConfig() (*tls.Config, error) {
func (c *Core) SetClusterListenerAddrs(addrs []*net.TCPAddr) {
c.clusterListenerAddrs = addrs
if c.clusterAddr == "" && len(addrs) == 1 {
c.clusterAddr = addrs[0].String()
c.clusterAddr = fmt.Sprintf("https://%s", addrs[0].String())
}
}

Expand Down

0 comments on commit 55109f6

Please sign in to comment.