We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 802e137 commit 4a6a782Copy full SHA for 4a6a782
1 file changed
tests/dtls-server.c
@@ -308,7 +308,7 @@ usage(const char *program, const char *version) {
308
program = ++p;
309
310
fprintf(stderr, "%s v%s -- DTLS server implementation\n"
311
- "(c) 2011-2014 Olaf Bergmann <bergmann@tzi.org>\n\n"
+ "(c) 2011-2024 Olaf Bergmann <bergmann@tzi.org>\n\n"
312
"usage: %s [-A address] [-c cipher suites] [-e] [-p port] [-r] [-v num]\n"
313
"\t-A address\t\tlisten on specified address (default is ::)\n",
314
program, version, program);
@@ -386,6 +386,11 @@ main(int argc, char **argv) {
386
exit(1);
387
}
388
389
+ if (argc != optind) {
390
+ dtls_warn("no arguments supported!\n");
391
+ usage(argv[0], dtls_package_version());
392
+ exit(1);
393
+ }
394
listen_addr.sin6_port = port;
395
396
dtls_set_log_level(log_level);
0 commit comments