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:
parent
8b53a22b78
commit
6604cccf9e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue