Browse Source

Improve error message

pull/99/head
B. Blechschmidt 2 years ago
parent
commit
d03e3c268d
  1. 2
      src/http.rs

2
src/http.rs

@ -406,7 +406,7 @@ impl ProxyHandlerManager for HttpManager {
_udp_associate: bool,
) -> std::io::Result<Arc<Mutex<dyn ProxyHandler>>> {
if info.protocol != IpProtocol::Tcp {
return Err(Error::from("Invalid protocol").into());
return Err(Error::from("Protocol not supported by HTTP proxy").into());
}
Ok(Arc::new(Mutex::new(
HttpConnection::new(info, domain_name, self.credentials.clone(), self.digest_state.clone()).await?,

Loading…
Cancel
Save