Don't reload auth_opt_ options on reload.
This matches the behaviour of the other plugin options. Closes #1068. Thanks to Jason McFadyen. Bug: https://github.com/eclipse/mosquitto/issues/1068
This commit is contained in:
parent
464b12f3d6
commit
c9ed2708f6
@ -11,6 +11,8 @@ Broker:
|
||||
network is down. Closes #1062.
|
||||
- Fix outgoing retained messages not being sent by bridges on initial
|
||||
connection. Closes #1040.
|
||||
- Don't reload auth_opt_ options on reload, to match the behaviour of the
|
||||
other plugin options. Closes #1068.
|
||||
|
||||
Library:
|
||||
- Fix reconnect delay backoff behaviour. Closes #1027.
|
||||
|
@ -818,6 +818,7 @@ int config__read_file_core(struct mosquitto__config *config, bool reload, struct
|
||||
conf__set_cur_security_options(config, cur_listener, &cur_security_options);
|
||||
if(conf__parse_bool(&token, "allow_zero_length_clientid", &cur_security_options->allow_zero_length_clientid, saveptr)) return MOSQ_ERR_INVAL;
|
||||
}else if(!strncmp(token, "auth_opt_", 9)){
|
||||
if(reload) continue; // Auth plugin not currently valid for reloading.
|
||||
if(!cur_auth_plugin_config){
|
||||
log__printf(NULL, MOSQ_LOG_ERR, "Error: An auth_opt_ option exists in the config file without an auth_plugin.");
|
||||
return MOSQ_ERR_INVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user