Skip to content

Commit

Permalink
fix: listen on 0.0.0.0 instead of localhost (#204)
Browse files Browse the repository at this point in the history
* Revert "fix: listen on 0.0.0.0 instead of localhost (#203)"

This reverts commit 5099ad1.

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

* fix: listen on 0.0.0.0 instead of localhost

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>

---------

Signed-off-by: Alexis Asseman <alexis@semiotic.ai>
  • Loading branch information
aasseman committed Jan 15, 2024
1 parent 5099ad1 commit 95d8ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap_aggregator/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 95d8ea6

Please sign in to comment.