mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
mosquitto_ctrl dynsec now also allows -i
to specify a clientid
This is as well as `-c`. This matches the documentation which states `-i`. Closes #3219. Thanks to dkusalic
This commit is contained in:
parent
60e47417cd
commit
9f1ebee114
@ -8,6 +8,9 @@ Broker:
|
||||
an IPv6 link-local address and no other IPv6 addresses. Closes #2696.
|
||||
- Fix mismatched wrapped/unwrapped memory alloc/free in properties. Closes #3192.
|
||||
|
||||
Apps:
|
||||
- mosquitto_ctrl dynsec now also allows `-i` to specify a clientid as well as
|
||||
`-c`. This matches the documentation which states `-i`. Closes #3219.
|
||||
Client library:
|
||||
- Fix threads linking on Windows for static libmosquitto library
|
||||
Closes #3143
|
||||
|
@ -49,7 +49,7 @@ void dynsec__print_usage(void)
|
||||
printf("Set group for anonymous clients: setAnonymousGroup <groupname>\n");
|
||||
|
||||
printf("\nClients\n-------\n");
|
||||
printf("Create a new client: createClient <username> [-c clientid] [-p password]\n");
|
||||
printf("Create a new client: createClient <username> [-i clientid] [-p password]\n");
|
||||
printf("Delete a client: deleteClient <username>\n");
|
||||
printf("Set a client password: setClientPassword <username> [password]\n");
|
||||
printf("Set a client id: setClientId <username> [clientid]\n");
|
||||
|
@ -40,9 +40,9 @@ int dynsec_client__create(int argc, char *argv[], cJSON *j_command)
|
||||
username = argv[0];
|
||||
|
||||
for(i=1; i<argc; i++){
|
||||
if(!strcmp(argv[i], "-c")){
|
||||
if(!strcmp(argv[i], "-c") || !strcmp(argv[i], "-i")){
|
||||
if(i+1 == argc){
|
||||
fprintf(stderr, "Error: -c argument given, but no clientid provided.\n");
|
||||
fprintf(stderr, "Error: -i argument given, but no clientid provided.\n");
|
||||
return MOSQ_ERR_INVAL;
|
||||
}
|
||||
clientid = argv[i+1];
|
||||
|
Loading…
x
Reference in New Issue
Block a user