1
0
mirror of https://github.com/actix/examples synced 2024-12-05 03:01:55 +01:00

Fix podman configuration

Podman binds `host.containers.internal` to public ip. So setting the
localhost by hand in the autobahn fuzzingclient configuration makes
possible to run the actix server on localhost.
This commit is contained in:
Marek Skórkowski 2022-12-03 03:30:20 +01:00
parent b5cdcceb23
commit 87f5f295b4
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"servers": [
{
"agent": "actix-web-actors",
"url": "ws://host.containers.internal:9001"
"url": "ws://127.0.0.1:9001"
}
],
"cases": ["*"],

View File

@ -15,7 +15,7 @@ async fn main() -> std::io::Result<()> {
.service(web::resource("/").route(web::get().to(websocket::index)))
})
.workers(2)
.bind(("0.0.0.0", 9001))?
.bind(("127.0.0.1", 9001))?
.run()
.await
}