Improve error message

This commit is contained in:
B. Blechschmidt 2024-02-24 22:25:22 +01:00
parent 91fcd07733
commit d03e3c268d

View file

@ -406,7 +406,7 @@ impl ProxyHandlerManager for HttpManager {
_udp_associate: bool, _udp_associate: bool,
) -> std::io::Result<Arc<Mutex<dyn ProxyHandler>>> { ) -> std::io::Result<Arc<Mutex<dyn ProxyHandler>>> {
if info.protocol != IpProtocol::Tcp { 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( Ok(Arc::new(Mutex::new(
HttpConnection::new(info, domain_name, self.credentials.clone(), self.digest_state.clone()).await?, HttpConnection::new(info, domain_name, self.credentials.clone(), self.digest_state.clone()).await?,