From 301d55b4f2ce69ce39d33089ae4e9abedc3034e7 Mon Sep 17 00:00:00 2001 From: DanGould Date: Sat, 16 Mar 2024 16:44:08 -0400 Subject: [PATCH] Trace allowable gateway --- src/bootstrap/connect.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/connect.rs b/src/bootstrap/connect.rs index b009d54..e126f54 100644 --- a/src/bootstrap/connect.rs +++ b/src/bootstrap/connect.rs @@ -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}; @@ -58,7 +58,9 @@ fn find_allowable_gateway(req: &Request, 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; }