mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 19:55:10 +00:00
[ADD] Add accept_pings parameters
This is off by default, but highly encouraged for Synapse deployments
This commit is contained in:
parent
176f390c4b
commit
1c51d57355
6 changed files with 23 additions and 5 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -43,6 +43,8 @@ typedef struct ParseeConfig {
|
|||
int homeserver_port;
|
||||
int homeserver_tls;
|
||||
|
||||
bool accept_pings;
|
||||
|
||||
|
||||
/* ------- JABBER -------- */
|
||||
char *component_addr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue