Added better handling of blacklisted hosts and alerts

Disabled MySQL DB for view interfaces
This commit is contained in:
Luca Deri 2016-12-19 16:57:14 +01:00
parent fd6bd7ef76
commit ee400ef10f
7 changed files with 36 additions and 20 deletions

View file

@ -142,15 +142,13 @@ NetworkInterface::NetworkInterface(const char *name, const char *custom_interfac
if(ntop->getPrefs()->are_taps_enabled())
pkt_dumper_tap = new PacketDumperTuntap(this);
running = false, sprobe_interface = false, inline_interface = false;
running = false, sprobe_interface = false, inline_interface = false, db = NULL;
if(ntop->getPrefs()->do_dump_flows_on_mysql()) {
db = NULL;
if((!isView()) && (ntop->getPrefs()->do_dump_flows_on_mysql())) {
#ifdef NTOPNG_PRO
// if(ntop->getPrefs()->is_enterprise_edition()) db = new BatchedMySQLDB(this);
#endif
if(db == NULL)
db = new MySQLDB(this);