Add warning when listening=false. (fixes #81)

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-06-24 21:44:14 +00:00
parent 56d9c9a8b5
commit 972201da60

View File

@@ -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;