[ADD] Add accept_pings parameters

This is off by default, but highly encouraged for Synapse deployments
This commit is contained in:
lda 2025-02-12 08:24:18 +00:00
commit 1c51d57355
6 changed files with 23 additions and 5 deletions

View file

@ -63,7 +63,7 @@ ParseeCheckMatrix(void *datp)
{
static volatile uint64_t streak = 0;
ParseeData *data = datp;
if (!ASPing(data->config))
if (data->config->accept_pings && !ASPing(data->config))
{
Log(LOG_ERR, "Cannot reach '%s' properly...", data->config->homeserver_host);
if (++streak == 10)

View file

@ -68,6 +68,7 @@ ParseeConfigLoad(char *conf)
CopyToStr(homeserver_host, "hs_host");
CopyToInt(homeserver_port, "hs_port");
CopyToBool(homeserver_tls, "hs_tls");
CopyToBool(homeserver_tls, "accept_pings");
if (!HashMapGet(json, "hs_tls"))
{
config->homeserver_tls = true;

View file

@ -43,6 +43,8 @@ typedef struct ParseeConfig {
int homeserver_port;
int homeserver_tls;
bool accept_pings;
/* ------- JABBER -------- */
char *component_addr;