diff options
author | metamuffin <metamuffin@disroot.org> | 2023-10-06 10:22:31 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-10-06 10:22:31 +0200 |
commit | 6e4095bd811a53cb75092516ef303b746e9aafba (patch) | |
tree | 44875ca252da14cc8018413ed2a25f99ed1fa06d /src/proxy.rs | |
parent | 452541087c6562fca94f24b9275b17d771622fbd (diff) | |
download | gnix-6e4095bd811a53cb75092516ef303b746e9aafba.tar gnix-6e4095bd811a53cb75092516ef303b746e9aafba.tar.bz2 gnix-6e4095bd811a53cb75092516ef303b746e9aafba.tar.zst |
some basic reporting for mond
Diffstat (limited to 'src/proxy.rs')
-rw-r--r-- | src/proxy.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/proxy.rs b/src/proxy.rs index d38de4d..e8d2467 100644 --- a/src/proxy.rs +++ b/src/proxy.rs @@ -20,6 +20,9 @@ pub async fn proxy_request( addr: SocketAddr, backend: &SocketAddr, ) -> Result<hyper::Response<BoxBody<bytes::Bytes, ServiceError>>, ServiceError> { + #[cfg(feature = "mond")] + state.reporting.request_out.inc(); + let scheme_secure = req.uri().scheme() == Some(&Scheme::HTTPS); *req.uri_mut() = Uri::builder() .path_and_query( |