feat: listen on v6 and v4

This commit is contained in:
Compositr 2024-11-01 19:48:55 +11:00
parent c69efdcd63
commit 1473d03e71
Signed by: compositr
GPG key ID: 91E3DE20129A0B4A

View file

@ -8,7 +8,7 @@ mod http;
fn main() { fn main() {
let listener = let listener =
TcpListener::bind("127.0.0.1:7878").unwrap_or_else(|_| fatal("Failed to bind to address")); TcpListener::bind("[::]:7878").unwrap_or_else(|_| fatal("Failed to bind to address"));
ctrlc::set_handler(move || { ctrlc::set_handler(move || {
println!("Shutting down..."); println!("Shutting down...");