1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-28 02:38:30 +00:00

add option to disable listeners

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-09 21:01:58 +00:00
parent e56d3c6cb3
commit 5167e1f06d
3 changed files with 20 additions and 4 deletions

View file

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