mirror of
https://github.com/nicoburns/blessed-rs
synced 2024-11-10 06:14:15 +00:00
Switch default host to ipv6
This commit is contained in:
parent
229f5d496a
commit
165e474114
2 changed files with 2 additions and 2 deletions
2
fly.toml
2
fly.toml
|
@ -7,7 +7,7 @@ kill_timeout = 5
|
|||
processes = []
|
||||
|
||||
[env]
|
||||
HOST = "0.0.0.0"
|
||||
HOST = "::"
|
||||
PORT = 3333
|
||||
RUST_LOG = "debug"
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ async fn main() {
|
|||
|
||||
// run our app with hyper
|
||||
// `axum::Server` is a re-export of `hyper::Server`
|
||||
let host : IpAddr = std::env::var("HOST").ok().and_then(|h| h.parse().ok()).unwrap_or([127, 0, 0, 1].into());
|
||||
let host : IpAddr = std::env::var("HOST").ok().and_then(|h| h.parse().ok()).unwrap_or("::".parse().unwrap());
|
||||
let port = std::env::var("PORT").ok().and_then(|p| p.parse().ok()).unwrap_or(3333);
|
||||
let addr = SocketAddr::from((host, port));
|
||||
tracing::debug!("listening on {}", addr);
|
||||
|
|
Loading…
Reference in a new issue