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