mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-15 02:36:08 -04:00
Initialize url black/white list
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include "Conf.h"
|
||||
#include "Mem.h"
|
||||
#include "UrlBlockCheck.h"
|
||||
#include "UrlMatchList.h"
|
||||
#include <libgen.h>
|
||||
#include <algorithm>
|
||||
|
||||
@ -98,6 +99,9 @@ int main(int argc, char **argv) {
|
||||
key96_t endKey;
|
||||
endKey.setMax();
|
||||
|
||||
g_urlBlackList.init();
|
||||
g_urlWhiteList.init();
|
||||
|
||||
while (msg5.getList(RDB_TITLEDB, cr->m_collnum, &list, &startKey, &endKey, 10485760, true, 0, -1, NULL, NULL, 0, true, -1, false)) {
|
||||
|
||||
if (list.isEmpty()) {
|
||||
|
Reference in New Issue
Block a user