From 6c18230072e7e25931c9ecc49e6a62e2c2610f51 Mon Sep 17 00:00:00 2001 From: DevITWay Date: Mon, 26 Jan 2026 07:24:02 +0000 Subject: [PATCH] fix: add ConnectInfo for rate limiter IP extraction PeerIpKeyExtractor requires SocketAddr from ConnectInfo to extract client IP. Without this, rate limiting fails with "Unable To Extract Key!" error in Docker containers. --- nora-registry/src/main.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nora-registry/src/main.rs b/nora-registry/src/main.rs index 51691a2..4e9cb2f 100644 --- a/nora-registry/src/main.rs +++ b/nora-registry/src/main.rs @@ -268,10 +268,13 @@ async fn run_server(config: Config, storage: Storage) { ); // Graceful shutdown on SIGTERM/SIGINT - axum::serve(listener, app) - .with_graceful_shutdown(shutdown_signal()) - .await - .expect("Server error"); + axum::serve( + listener, + app.into_make_service_with_connect_info::(), + ) + .with_graceful_shutdown(shutdown_signal()) + .await + .expect("Server error"); info!( uptime_seconds = state.start_time.elapsed().as_secs(),