Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --no-console argument. #510

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// My mingw installation does not load inet_pton definition for some reason
WINSOCK_API_LINKAGE INT WSAAPI inet_pton(INT Family, LPCSTR pStringBuf, PVOID pAddr);

#define GOODBYEDPI_VERSION "v0.2.3"
#define GOODBYEDPI_VERSION "v0.2.4"

#define die() do { sleep(20); exit(EXIT_FAILURE); } while (0)

Expand Down Expand Up @@ -188,6 +188,7 @@ static struct option long_options[] = {
{"native-frag", no_argument, 0, '*' },
{"reverse-frag",no_argument, 0, '(' },
{"max-payload", optional_argument, 0, '|' },
{"debug-no-console", optional_argument, 0, 'c'},
{"debug-exit", optional_argument, 0, '?' },
{0, 0, 0, 0 }
};
Expand Down Expand Up @@ -940,6 +941,9 @@ int main(int argc, char *argv[]) {
else
max_payload_size = 1200;
break;
case 'c': // --debug-no-console
FreeConsole();
break;
case '?': // --debug-exit
debug_exit = true;
break;
Expand Down