Add warning when listening=false. (fixes #81)
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
56d9c9a8b5
commit
972201da60
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue