warn if a catchall config option (unknown config option) exists

a longer way of saying: warn if a config key is unknown

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-08 19:19:28 -05:00 committed by June
parent d4d8c6eb21
commit 6996d63a02
2 changed files with 13 additions and 1 deletions

View file

@ -136,6 +136,9 @@ async fn main() {
maximize_fd_limit().expect("Unable to increase maximum soft and hard file descriptor limit");
config.warn_deprecated();
config.warn_unknown_key();
// don't start if we're listening on both UNIX sockets and TCP at same time
if config.is_dual_listening(raw_config) {
return;
};