Skip to content

Commit

Permalink
mqtt host clear fix
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Aug 27, 2023
1 parent 947ea73 commit 8b0c85f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/httpserver/http_fns.c
Original file line number Diff line number Diff line change
Expand Up @@ -1059,8 +1059,9 @@ int http_fn_cfg_mqtt_set(http_request_t* request) {
http_html_start(request, "Saving MQTT");

if (http_getArg(request->url, "host", tmpA, sizeof(tmpA))) {
CFG_SetMQTTHost(tmpA);
}
// FIX: always set, so people can clear field
CFG_SetMQTTHost(tmpA);
if (http_getArg(request->url, "port", tmpA, sizeof(tmpA))) {
CFG_SetMQTTPort(atoi(tmpA));
}
Expand Down

0 comments on commit 8b0c85f

Please sign in to comment.