mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-02 16:33:13 +02:00
Fetch Central Spamfilter rules with the API Key via alternate URL.
* The [Central Spamfilter](https://www.unrealircd.org/docs/Central_Spamfilter), which provides spamfilter { } blocks that are centrally managed, is now fetched from a different URL if you have an Central API key set. This way, we can later provide spamfilter { } blocks that build on central blocklist scoring functionality, and also don't have to reveal the central spamfilter blocks to 100% of the world.
This commit is contained in:
@@ -299,6 +299,11 @@
|
||||
#define UNREALIRCD_DEFAULT_ECDH_CURVES "secp521r1:secp384r1:prime256v1"
|
||||
#endif
|
||||
|
||||
/* These can be changed via set::central-spamfilter::url and ::feed */
|
||||
#define DEFAULT_CENTRAL_SPAMFILTER_URL_OPEN_ACCESS "https://spamfilter.unrealircd.org/spamfilter/v6/$feed/central_spamfilter.conf"
|
||||
#define DEFAULT_CENTRAL_SPAMFILTER_URL_RESTRICTED_ACCESS "https://spamfilter.unrealircd-api.org/spamfilter/v6/$feed/central_spamfilter.conf"
|
||||
#define DEFAULT_CENTRAL_SPAMFILTER_FEED "standard"
|
||||
|
||||
/* These are just defaults, which you can override via set::dns */
|
||||
#define DNS_DEFAULT_CLIENT_TIMEOUT 1500
|
||||
#define DNS_DEFAULT_CLIENT_RETRIES 2
|
||||
|
||||
Reference in New Issue
Block a user