server: remove incorrect additional TLS listener wrap
If the REST listener is not nil at this point, it is always already
wrapped in a TLS listener and doesn't need to be wrapped again.
@@ -254,9 +254,6 @@ func (s *Server) Start() error {
log.Infof("RPC server listening on %s", s.grpcListener.Addr())
if s.restListener != nil {
- s.restListener = tls.NewListener(
- s.restListener, serverTLSCfg,
- )
log.Infof("REST proxy listening on %s",
s.restListener.Addr())
}
