From d3ce78948e8d81dc1e2c5298ce556f9f2247aac1 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Thu, 3 Feb 2022 18:58:18 +0100 Subject: [PATCH] Fixed ping initialization --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9329e527c4b9..66c8ab784306 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -159,6 +159,10 @@ int main(int argc, char *argv[]) } #endif +#ifndef WIN32 + ntop->initPing(); +#endif + if(prefs->daemonize_ntopng()) ntop->daemonize(); @@ -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;