mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
Add warning when listening=false. (fixes #81)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
56d9c9a8b5
commit
972201da60
1 file changed
+4
@@ -68,6 +68,10 @@ pub fn check(config: &Config) -> Result {
|
||||
return Err!(Config("port", "No ports were specified to listen on"));
|
||||
}
|
||||
|
||||
if !config.listening {
|
||||
warn!("Configuration item `listening` is set to `false`. Cannot hear anyone.");
|
||||
}
|
||||
|
||||
if config.unix_socket_path.is_none() {
|
||||
config.get_bind_addrs().iter().for_each(|addr| {
|
||||
use std::path::Path;
|
||||
|
||||
Reference in new issue
Block a user