lint
This commit is contained in:
parent
ce04666b8b
commit
89e71cc806
3 changed files with 6 additions and 6 deletions
|
@ -65,8 +65,8 @@ impl TunnelConnector for Socks5TunnelConnector<'_> {
|
||||||
|
|
||||||
async fn connect_with_http_proxy(
|
async fn connect_with_http_proxy(
|
||||||
&self,
|
&self,
|
||||||
proxy: &Url,
|
_proxy: &Url,
|
||||||
remote: &Option<RemoteAddr>,
|
_remote: &Option<RemoteAddr>,
|
||||||
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
|
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
|
||||||
Err(anyhow!("SOCKS5 tunneling is not supported with HTTP proxy"))
|
Err(anyhow!("SOCKS5 tunneling is not supported with HTTP proxy"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,8 +49,8 @@ impl TunnelConnector for UdpTunnelConnector<'_> {
|
||||||
|
|
||||||
async fn connect_with_http_proxy(
|
async fn connect_with_http_proxy(
|
||||||
&self,
|
&self,
|
||||||
proxy: &Url,
|
_proxy: &Url,
|
||||||
remote: &Option<RemoteAddr>,
|
_remote: &Option<RemoteAddr>,
|
||||||
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
|
) -> anyhow::Result<(Self::Reader, Self::Writer)> {
|
||||||
Err(anyhow!("UDP tunneling is not supported with HTTP proxy"))
|
Err(anyhow!("UDP tunneling is not supported with HTTP proxy"))
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,8 +206,8 @@ impl WsServer {
|
||||||
ppp::v2::Protocol::Stream,
|
ppp::v2::Protocol::Stream,
|
||||||
(client_address, tx.local_addr().unwrap()),
|
(client_address, tx.local_addr().unwrap()),
|
||||||
)
|
)
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let _ = tx.write_all(&header).await;
|
let _ = tx.write_all(&header).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue