From 972201da6096f8ebc72fcf8082b3c5a603b77542 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 24 Jun 2025 21:44:14 +0000 Subject: [PATCH] Add warning when listening=false. (fixes #81) Signed-off-by: Jason Volk --- src/core/config/check.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/config/check.rs b/src/core/config/check.rs index fdc4247e..0d87dce0 100644 --- a/src/core/config/check.rs +++ b/src/core/config/check.rs @@ -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;