diff options
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 3c3dc4546..f4c5783ab 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -536,6 +536,11 @@ rspamd_url_init (const gchar *tld_file) ret = rspamd_url_parse_tld_file (tld_file, url_scanner); } + if (url_scanner->matchers->len > 1000) { + msg_info ("start compiling of %d TLD suffixes; it might take a long time", + url_scanner->matchers->len); + } + if (!rspamd_multipattern_compile (url_scanner->search_trie, &err)) { msg_err ("cannot compile tld patterns, url matching will be " "broken completely: %e", err); |