Apply suggestion

Co-authored-by: Dominik <DL6ER@users.noreply.github.com>
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-11-06 16:21:02 -03:00
committed by GitHub
parent 94a05cb9e1
commit c2b0e64aec

View File

@@ -500,7 +500,7 @@ int get_json_config(struct ftl_conn *api, cJSON *json, const bool detailed)
continue;
// Check equality of paths up to the requested level (if any)
// Examples:
// requested was /config/dns -> skip all entries that do not start in dnsmasq.
// requested was /config/dns -> skip all entries that do not start in dns
// requested was /config/dns/dhcp -> skip all entries that do not start in dhcp
// etc.
if(!check_paths_equal(conf_item->p, requested_path, min_level - 1))