From a38d8cf50ad3398fe4a2709492785cebf7fea9e6 Mon Sep 17 00:00:00 2001 From: dvkt Date: Tue, 31 Dec 2019 19:39:51 -0800 Subject: [PATCH] just use ipv4 for now --- src/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.rs b/src/server.rs index c7f1847..7ad79d9 100644 --- a/src/server.rs +++ b/src/server.rs @@ -23,7 +23,7 @@ const IGNORED_FILES: [&str; 3] = ["header.gph", "footer.gph", ".reverse"]; /// Starts a Gopher server at the specified host, port, and root directory. pub fn start(host: &str, port: u16, root: &str) -> Result<()> { - let addr = format!("{}:{}", "[::1]", port); + let addr = format!("{}:{}", "0.0.0.0", port); let listener = TcpListener::bind(&addr)?; let full_root_path = fs::canonicalize(&root)?.to_string_lossy().to_string(); let pool = ThreadPool::new(MAX_WORKERS);