This commit is contained in:
Σrebe - Romain GERARD 2024-07-31 21:31:32 +02:00
parent ce04666b8b
commit 89e71cc806
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4
3 changed files with 6 additions and 6 deletions

View file

@ -65,8 +65,8 @@ impl TunnelConnector for Socks5TunnelConnector<'_> {
async fn connect_with_http_proxy(
&self,
proxy: &Url,
remote: &Option<RemoteAddr>,
_proxy: &Url,
_remote: &Option<RemoteAddr>,
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
Err(anyhow!("SOCKS5 tunneling is not supported with HTTP proxy"))
}

View file

@ -49,8 +49,8 @@ impl TunnelConnector for UdpTunnelConnector<'_> {
async fn connect_with_http_proxy(
&self,
proxy: &Url,
remote: &Option<RemoteAddr>,
_proxy: &Url,
_remote: &Option<RemoteAddr>,
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
Err(anyhow!("UDP tunneling is not supported with HTTP proxy"))
}

View file

@ -206,8 +206,8 @@ impl WsServer {
ppp::v2::Protocol::Stream,
(client_address, tx.local_addr().unwrap()),
)
.build()
.unwrap();
.build()
.unwrap();
let _ = tx.write_all(&header).await;
}