mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-17 08:48:51 +00:00
relay.negentropy.enabled config option: set to false to prevent processing negentropy messages
This commit is contained in:
@ -52,6 +52,8 @@ void RelayServer::runIngester(ThreadPool<MsgIngester>::Thread &thr) {
|
||||
sendNoticeError(msg->connId, std::string("bad close: ") + e.what());
|
||||
}
|
||||
} else if (cmd.starts_with("NEG-")) {
|
||||
if (!cfg().relay__negentropy__enabled) throw herr("negentropy disabled");
|
||||
|
||||
try {
|
||||
ingesterProcessNegentropy(txn, decomp, msg->connId, arr);
|
||||
} catch (std::exception &e) {
|
||||
|
Reference in New Issue
Block a user