integration: fix httptest TLS server start

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-04-13 11:16:54 -07:00
parent 08641dd48b
commit 3d3ba8b9cb

View File

@ -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() {