mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-16 11:14:42 +00:00
Compilation fix
This commit is contained in:
parent
3113fb4d29
commit
ce4ac606d4
1 changed files with 6 additions and 3 deletions
|
|
@ -31,8 +31,6 @@
|
|||
/* *************************************** */
|
||||
|
||||
Geolocation::Geolocation() {
|
||||
mmdbs_ok = false;
|
||||
|
||||
#ifdef HAVE_MAXMINDDB
|
||||
char docs_path[MAX_PATH];
|
||||
const char *lookup_paths[] = {
|
||||
|
|
@ -48,6 +46,8 @@ Geolocation::Geolocation() {
|
|||
docs_path
|
||||
};
|
||||
|
||||
mmdbs_ok = false;
|
||||
|
||||
snprintf(docs_path, sizeof(docs_path), "%s/geoip", ntop->getPrefs()->get_docs_dir());
|
||||
ntop->fixPath(docs_path);
|
||||
|
||||
|
|
@ -107,7 +107,10 @@ Geolocation::Geolocation() {
|
|||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
if(!mmdbs_ok) {
|
||||
#ifdef HAVE_MAXMINDDB
|
||||
if(!mmdbs_ok)
|
||||
#endif
|
||||
{
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Running without geolocation support.");
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "To enable geolocation follow the instructions at");
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "https://github.com/ntop/ntopng/blob/dev/doc/README.geolocation.md");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue