... | ... |
@@ -457,42 +457,6 @@ int main(int argc, char **argv) |
457 | 457 |
logg("#Not loading PUA signatures.\n"); |
458 | 458 |
} |
459 | 459 |
|
460 |
- if (optget(opts, "StatsEnabled")->enabled) { |
|
461 |
- cl_engine_stats_enable(engine); |
|
462 |
- } |
|
463 |
- |
|
464 |
- if (optget(opts, "StatsPEDisabled")->enabled) { |
|
465 |
- cl_engine_set_num(engine, CL_ENGINE_DISABLE_PE_STATS, 1); |
|
466 |
- } |
|
467 |
- |
|
468 |
- if (optget(opts, "StatsTimeout")->enabled) { |
|
469 |
- cl_engine_set_num(engine, CL_ENGINE_STATS_TIMEOUT, optget(opts, "StatsTimeout")->numarg); |
|
470 |
- } |
|
471 |
- |
|
472 |
- if (optget(opts, "StatsHostID")->enabled) { |
|
473 |
- char *p = optget(opts, "StatsHostID")->strarg; |
|
474 |
- |
|
475 |
- if (strcmp(p, "default")) { |
|
476 |
- if (!strcmp(p, "none")) { |
|
477 |
- cl_engine_set_clcb_stats_get_hostid(engine, NULL); |
|
478 |
- } else if (!strcmp(p, "anonymous")) { |
|
479 |
- strcpy(hostid, STATS_ANON_UUID); |
|
480 |
- } else { |
|
481 |
- if (strlen(p) > 36) { |
|
482 |
- logg("!Invalid HostID\n"); |
|
483 |
- cl_engine_set_clcb_stats_submit(engine, NULL); |
|
484 |
- cl_engine_free(engine); |
|
485 |
- ret = 1; |
|
486 |
- break; |
|
487 |
- } |
|
488 |
- |
|
489 |
- strcpy(hostid, p); |
|
490 |
- } |
|
491 |
- |
|
492 |
- cl_engine_set_clcb_stats_get_hostid(engine, get_hostid); |
|
493 |
- } |
|
494 |
- } |
|
495 |
- |
|
496 | 460 |
if(optget(opts, "OfficialDatabaseOnly")->enabled) { |
497 | 461 |
dboptions |= CL_DB_OFFICIAL_ONLY; |
498 | 462 |
logg("#Only loading official signatures.\n"); |