Skip to content

Commit

Permalink
Fixed typo in command line argument validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lminiero committed May 12, 2023
1 parent 67c8352 commit 2667b6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.c
Expand Up @@ -53,7 +53,7 @@ gboolean janus_options_parse(janus_options *options, int argc, char *argv[]) {
{ "debug-locks", 'M', 0, G_OPTION_ARG_NONE, &options->debug_locks, "Enable debugging of locks/mutexes (very verbose!)", NULL },
{ "apisecret", 'a', 0, G_OPTION_ARG_STRING, &options->apisecret, "API secret all requests need to pass in order to be accepted by Janus (useful when wrapping Janus API requests in a server, none by default)", "randomstring" },
{ "token-auth", 'A', 0, G_OPTION_ARG_NONE, &options->token_auth, "Enable token-based authentication for all requests", NULL },
{ "token-auth-secret", 0, 0, G_OPTION_ARG_INT, &options->token_auth_secret, "Secret to verify HMAC-signed tokens with, to be used with -A", "randomstring" },
{ "token-auth-secret", 0, 0, G_OPTION_ARG_STRING, &options->token_auth_secret, "Secret to verify HMAC-signed tokens with, to be used with -A", "randomstring" },
{ "event-handlers", 'e', 0, G_OPTION_ARG_NONE, &options->event_handlers, "Enable event handlers", NULL },
{ "no-webrtc-encryption", 'w', 0, G_OPTION_ARG_NONE, &options->no_webrtc_encryption, "Disable WebRTC encryption, so no DTLS or SRTP (only for debugging!)", NULL },
{ NULL },
Expand Down

0 comments on commit 2667b6c

Please sign in to comment.