mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 12:15:12 +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
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -4,10 +4,11 @@ parsee*
|
||||||
parsee
|
parsee
|
||||||
*.swp
|
*.swp
|
||||||
.*
|
.*
|
||||||
data
|
data*
|
||||||
data/*
|
data*/*
|
||||||
Makefile
|
Makefile
|
||||||
configure
|
configure
|
||||||
|
gmon.out
|
||||||
|
|
||||||
tools/out
|
tools/out
|
||||||
tools/out/*
|
tools/out/*
|
||||||
|
|
@ -24,3 +25,4 @@ tags
|
||||||
!.forgejo
|
!.forgejo
|
||||||
!.forgejo/*
|
!.forgejo/*
|
||||||
!.forgejo/**
|
!.forgejo/**
|
||||||
|
|
||||||
|
|
|
||||||
13
CHANGELOG.md
13
CHANGELOG.md
|
|
@ -13,6 +13,19 @@ commit done between releases.
|
||||||
*There is currently no beta releases of Parsee*
|
*There is currently no beta releases of Parsee*
|
||||||
|
|
||||||
## Alpha
|
## Alpha
|
||||||
|
|
||||||
|
### v0.3.0[lunar-rainbow] <XX/XX/2025>
|
||||||
|
This is the first release of 2025!
|
||||||
|
TBD
|
||||||
|
#### New things
|
||||||
|
- Allow admins to remove users from the nofly list.
|
||||||
|
- Parsee can now access the homeserver/component locally (rather than over the network)
|
||||||
|
- The endpoint for media has been changed to '/media/[SERV]/[ID]?hmac=...'
|
||||||
|
- Add parsee-plumb tool to manage plumbing from outside Parsee if it is not running.
|
||||||
|
#### Bugfixes
|
||||||
|
- Fix potential infinite loops when processing some messages.
|
||||||
|
- Parsee now handles pinging puppets from Matrix more sanely.
|
||||||
|
|
||||||
### v0.2.0[star-of-hope] <8/11/2024>
|
### v0.2.0[star-of-hope] <8/11/2024>
|
||||||
Fixes some media metadata things, replaces the build system,
|
Fixes some media metadata things, replaces the build system,
|
||||||
tries out avatar support some more, MUC contexts, and speeds
|
tries out avatar support some more, MUC contexts, and speeds
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
CODE=star-of-hope
|
CODE=lunar-rainbow
|
||||||
NAME=Parsee
|
NAME=Parsee
|
||||||
VERSION=0.2.0
|
VERSION=0.3.0
|
||||||
BINARY=parsee
|
BINARY=parsee
|
||||||
SOURCE=src
|
SOURCE=src
|
||||||
INCLUDES=src/include
|
INCLUDES=src/include
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ ParseeCheckMatrix(void *datp)
|
||||||
{
|
{
|
||||||
static volatile uint64_t streak = 0;
|
static volatile uint64_t streak = 0;
|
||||||
ParseeData *data = datp;
|
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);
|
Log(LOG_ERR, "Cannot reach '%s' properly...", data->config->homeserver_host);
|
||||||
if (++streak == 10)
|
if (++streak == 10)
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,7 @@ ParseeConfigLoad(char *conf)
|
||||||
CopyToStr(homeserver_host, "hs_host");
|
CopyToStr(homeserver_host, "hs_host");
|
||||||
CopyToInt(homeserver_port, "hs_port");
|
CopyToInt(homeserver_port, "hs_port");
|
||||||
CopyToBool(homeserver_tls, "hs_tls");
|
CopyToBool(homeserver_tls, "hs_tls");
|
||||||
|
CopyToBool(homeserver_tls, "accept_pings");
|
||||||
if (!HashMapGet(json, "hs_tls"))
|
if (!HashMapGet(json, "hs_tls"))
|
||||||
{
|
{
|
||||||
config->homeserver_tls = true;
|
config->homeserver_tls = true;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,8 @@ typedef struct ParseeConfig {
|
||||||
int homeserver_port;
|
int homeserver_port;
|
||||||
int homeserver_tls;
|
int homeserver_tls;
|
||||||
|
|
||||||
|
bool accept_pings;
|
||||||
|
|
||||||
|
|
||||||
/* ------- JABBER -------- */
|
/* ------- JABBER -------- */
|
||||||
char *component_addr;
|
char *component_addr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue