mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-27 03:23:00 +01:00
Load config file on startup
This commit is contained in:
parent
6fa6a0781b
commit
1633fce10a
@ -1104,6 +1104,8 @@ int main(int argc,char **argv) {
|
||||
struct pcap_pkthdr hdr;
|
||||
#endif
|
||||
|
||||
load_configuration_file();
|
||||
|
||||
time(&start_time);
|
||||
printf("I need few seconds for collecting data, please wait. Thank you!\n");
|
||||
|
||||
@ -1160,8 +1162,6 @@ int main(int argc,char **argv) {
|
||||
// загружаем наши сети и whitelist
|
||||
load_our_networks_list();
|
||||
|
||||
load_configuration_file();
|
||||
|
||||
// устанавливаем обработчик CTRL+C
|
||||
signal(SIGINT, signal_handler);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user