mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-05-14 14:02:45 +00:00
Improve error message
This commit is contained in:
parent
91fcd07733
commit
d03e3c268d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue