Skip to content

Commit

Permalink
use req.uri().path() to find ProxyRote in websocket. Note: in the cur…
Browse files Browse the repository at this point in the history
…rent stage only quicknode feature supports both websocket and http.
  • Loading branch information
laruh committed May 24, 2024
1 parent e607cbb commit e98cf08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub(crate) async fn socket_handler(
mut req: Request<Body>,
remote_addr: SocketAddr,
) -> GenericResult<Response<Body>> {
let inbound_route = req.uri().to_string();
let inbound_route = req.uri().path().to_string();
let proxy_route = match cfg.get_proxy_route_by_inbound(&inbound_route) {
Some(proxy_route) => proxy_route.clone(),
None => {
Expand Down

0 comments on commit e98cf08

Please sign in to comment.