Skip to content
/ etcd Public
forked from etcd-io/etcd

Commit

Permalink
integration: fix httptest TLS server start
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Apr 13, 2018
1 parent 08641dd commit 3d3ba8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,11 @@ func (m *member) Launch() error {
Config: &http.Server{Handler: h, TLSConfig: peerTLScfg},
TLS: peerTLScfg,
}
hs.Start()
if peerTLScfg == nil {
hs.Start()
} else {
hs.StartTLS()
}

donec := make(chan struct{})
go func() {
Expand Down

0 comments on commit 3d3ba8b

Please sign in to comment.