message: check http TCP mode in check_integrity
diff: @@ -788,6 +788,14 @@ impl LocalConfig {
  }
  }
  + #[cfg(feature = "local-http")]
  + ProtocolType::Http => {
  + if !self.mode.enable_tcp() {
  + let err = Error::new(ErrorKind::Invalid, "TCP mode have to be enabled for http", None);
  + return Err(err);
  + }
  + }
  +
  _ => {}
  }
  @@ -1204,16 +1212,6 @@ impl Config {
  }
  }
  - #[cfg(feature = "local-http")]
  - if local_config.protocol == ProtocolType::Http && !local_config.mode.enable_tcp() {
  - let err = Error::new(
  - ErrorKind::Invalid,
  - "invalid `mode`, TCP have to be enabled for http",
  - None,
  - );
  - return Err(err);
  - }
  -
  #[cfg(feature = "local-tunnel")]
  if let Some(forward_address) = local.forward_address {
  let forward_port = match local.forward_port {
  