mirror of
https://github.com/ntop/ntopng.git
synced 2026-08-21 14:23:22 +00:00
Added better handling of blacklisted hosts and alerts
Disabled MySQL DB for view interfaces
This commit is contained in:
parent
fd6bd7ef76
commit
ee400ef10f
7 changed files with 36 additions and 20 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue