Skip to content

Commit

Permalink
Trace allowable gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Mar 17, 2024
1 parent f610f0d commit 301d55b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bootstrap/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use hyper::upgrade::Upgraded;
use hyper::{Method, Request, Response};
use hyper_util::rt::TokioIo;
use tokio::net::TcpStream;
use tracing::{error, instrument};
use tracing::{debug, error, instrument};

use crate::error::Error;
use crate::{empty, uri_to_addr, GatewayUri};
Expand Down Expand Up @@ -58,7 +58,9 @@ fn find_allowable_gateway<B>(req: &Request<B>, gateway_origin: &GatewayUri) -> O
where
B: Debug,
{
debug!("req: {:?}, gateway_origin: {:?}", req, gateway_origin);
if req.uri().authority() != gateway_origin.authority() {
debug!("CONNECT request to non-gateway authority: {:?}", req.uri());
return None;
}

Expand Down

0 comments on commit 301d55b

Please sign in to comment.