Initialize url black/white list

This commit is contained in:
Ai Lin Chia
2017-10-10 11:57:40 +02:00
parent de0d5ca02d
commit 0e3a420b0b

@ -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()) {