Skip to content

Commit

Permalink
Fixed ping initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 3, 2022
1 parent ea45726 commit d3ce789
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.cpp
Expand Up @@ -159,6 +159,10 @@ int main(int argc, char *argv[])
}
#endif

#ifndef WIN32
ntop->initPing();
#endif

if(prefs->daemonize_ntopng())
ntop->daemonize();

Expand Down Expand Up @@ -314,10 +318,6 @@ int main(int argc, char *argv[])
exit(0);
}

#ifndef WIN32
ntop->initPing();
#endif

#ifndef WIN32
if(prefs->get_pid_path() != NULL) {
FILE *fd;
Expand Down

0 comments on commit d3ce789

Please sign in to comment.