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.
This commit is contained in:
Joscha 2023-08-08 23:55:57 +02:00
parent 8b53a22b78
commit 6604cccf9e

View file

@ -16,7 +16,7 @@ mod default {
pub fn web_address() -> SocketAddr { pub fn web_address() -> SocketAddr {
// Port chosen by fair dice roll // Port chosen by fair dice roll
"[::]:8221".parse().unwrap() "[::1]:8221".parse().unwrap()
} }
pub fn repo_name() -> String { pub fn repo_name() -> String {