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:
parent
b5cdcceb23
commit
87f5f295b4
@ -3,7 +3,7 @@
|
||||
"servers": [
|
||||
{
|
||||
"agent": "actix-web-actors",
|
||||
"url": "ws://host.containers.internal:9001"
|
||||
"url": "ws://127.0.0.1:9001"
|
||||
}
|
||||
],
|
||||
"cases": ["*"],
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user