Update 'src/main.rs'

Changed the hardcoded IP address.
This commit is contained in:
Thelie 2023-07-04 15:44:49 +02:00
parent 7870100cbe
commit 9bab6ce036

View file

@ -236,7 +236,7 @@ async fn echo(req: Request<Body>) -> Result<Response<Body>> {
#[tokio::main]
async fn main() -> Result<()> {
let addr = ([127, 0, 0, 1], 3000).into();
let addr = ([0, 0, 0, 1], 3000).into();
let service = make_service_fn(|_| async { Ok::<_, hyper::Error>(service_fn(echo)) });