feat: listen on v6 and v4
This commit is contained in:
parent
c69efdcd63
commit
1473d03e71
1 changed files with 1 additions and 1 deletions
|
@ -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...");
|
||||||
|
|
Loading…
Reference in a new issue