mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-12-22 06:15:27 +00:00
Do not print "Error receiving packet!" upon exiting
This commit is contained in:
parent
ed42c5d627
commit
1ea70f9bc9
@ -112,6 +112,7 @@ WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pA
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
static int running_from_service = 0;
|
static int running_from_service = 0;
|
||||||
|
static int exiting = 0;
|
||||||
static HANDLE filters[MAX_FILTERS];
|
static HANDLE filters[MAX_FILTERS];
|
||||||
static int filter_num = 0;
|
static int filter_num = 0;
|
||||||
static const char http10_redirect_302[] = "HTTP/1.0 302 ";
|
static const char http10_redirect_302[] = "HTTP/1.0 302 ";
|
||||||
@ -283,6 +284,7 @@ void deinit_all() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void sigint_handler(int sig __attribute__((unused))) {
|
static void sigint_handler(int sig __attribute__((unused))) {
|
||||||
|
exiting = 1;
|
||||||
deinit_all();
|
deinit_all();
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
@ -1260,7 +1262,8 @@ int main(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// error, ignore
|
// error, ignore
|
||||||
printf("Error receiving packet!\n");
|
if (!exiting)
|
||||||
|
printf("Error receiving packet!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user