From 95d8ea6bcd0e22e15dc8a2fee29c9b64abda978b Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Mon, 15 Jan 2024 10:19:31 -0800 Subject: [PATCH] fix: listen on 0.0.0.0 instead of localhost (#204) * Revert "fix: listen on 0.0.0.0 instead of localhost (#203)" This reverts commit 5099ad166dda203cb9938c1fa417cf86d2215667. Signed-off-by: Alexis Asseman * fix: listen on 0.0.0.0 instead of localhost Signed-off-by: Alexis Asseman --------- Signed-off-by: Alexis Asseman --- tap_aggregator/src/server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tap_aggregator/src/server.rs b/tap_aggregator/src/server.rs index e73788c6..e2ed6ac6 100644 --- a/tap_aggregator/src/server.rs +++ b/tap_aggregator/src/server.rs @@ -223,7 +223,7 @@ pub async fn run_server( .max_response_body_size(max_response_body_size) .max_connections(max_concurrent_connections) .http_only() - .build(format!("127.0.0.1:{}", port)) + .build(format!("0.0.0.0:{}", port)) .await?; let addr = server.local_addr()?; println!("Listening on: {}", addr); @@ -362,7 +362,7 @@ mod tests { // Start the JSON-RPC client. let client = HttpClientBuilder::default() - .build(format!("http://0.0.0.0:{}", local_addr.port())) + .build(format!("http://127.0.0.1:{}", local_addr.port())) .unwrap(); // Create receipts