Update 'src/main.rs'
Changed the hardcoded IP address.
This commit is contained in:
parent
7870100cbe
commit
9bab6ce036
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ async fn echo(req: Request<Body>) -> Result<Response<Body>> {
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
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)) });
|
let service = make_service_fn(|_| async { Ok::<_, hyper::Error>(service_fn(echo)) });
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue