Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Jul 31, 2024
1 parent ce04666 commit 89e71cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/tunnel/connectors/sock5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down
4 changes: 2 additions & 2 deletions src/tunnel/connectors/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down
4 changes: 2 additions & 2 deletions src/tunnel/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 89e71cc

Please sign in to comment.