operserv: REHASH reloads config live without a restart
All checks were successful
CI / check (push) Successful in 3m54s

This commit is contained in:
Jean Chevronnet 2026-07-17 10:46:12 +00:00
parent e112b8737c
commit 64b675e61f
No known key found for this signature in database
8 changed files with 126 additions and 1 deletions

View file

@ -143,6 +143,11 @@ pub async fn run(mut proto: Box<dyn Protocol>, engine: Arc<Mutex<Engine>>, addr:
.await?;
engine.lock().await.complete_authenticate(ok, then)
}
// OperServ REHASH: re-read config.toml and apply the
// reloadable settings live, reporting back to the oper.
NetAction::Rehash { requester, agent } => {
engine.lock().await.rehash(&requester, &agent)
}
action => vec![action],
};
for act in outs {