add option to disable listeners
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
e56d3c6cb3
commit
5167e1f06d
3 changed files with 20 additions and 4 deletions
|
@ -1710,6 +1710,11 @@ pub struct Config {
|
|||
#[serde(default)]
|
||||
pub sender_workers: usize,
|
||||
|
||||
/// Enables listener sockets; can be set to false to disable listening. This
|
||||
/// option is intended for developer/diagnostic purposes only.
|
||||
#[serde(default = "true_fn")]
|
||||
pub listening: bool,
|
||||
|
||||
#[serde(flatten)]
|
||||
#[allow(clippy::zero_sized_map_values)]
|
||||
// this is a catchall, the map shouldn't be zero at runtime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue