From 6604cccf9e4fec6de4d8fc7da5df1c1dc94fa11e Mon Sep 17 00:00:00 2001 From: Joscha Date: Tue, 8 Aug 2023 23:55:57 +0200 Subject: [PATCH] Restrict web server to localhost by default While this is one more thing to configure when running tablejohn as a web server, the overhead should be negligible if I provide an example server config. Security trumps convenience - this time. --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index de45213..ebfa1eb 100644 --- a/src/config.rs +++ b/src/config.rs @@ -16,7 +16,7 @@ mod default { pub fn web_address() -> SocketAddr { // Port chosen by fair dice roll - "[::]:8221".parse().unwrap() + "[::1]:8221".parse().unwrap() } pub fn repo_name() -> String {