get varstate uci option with confdir instead of savedir

This commit is contained in:
Omar Kallel 2021-09-29 15:07:38 +01:00
parent c56a828512
commit 6b1eca2873
3 changed files with 4 additions and 3 deletions

View file

@ -28,7 +28,7 @@ static int get_management_server_url(char *refparam, struct dmctx *ctx, void *da
else if ((url != NULL) && (url[0] != '\0'))
*value = url;
else
*value = dmstrdup("http://192.168.1.1:8080/openacs/acs");
*value = "";
return 0;
}

View file

@ -862,7 +862,7 @@ int varstate_get_value_string(char *package, char *section, char *option, char *
struct uci_ptr ptr = {0};
uci_add_delta_path(uci_varstate_ctx, uci_varstate_ctx->savedir);
uci_set_savedir(uci_varstate_ctx, VARSTATE_CONFIG);
uci_set_confdir(uci_varstate_ctx, VARSTATE_CONFIG);
if (dmuci_lookup_ptr(uci_varstate_ctx, &ptr, package, section, option, NULL)) {
*value = "";

View file

@ -1 +1,2 @@
cwmp.acs.dhcp_url='http://192.168.1.123:8080/openacs'
config acs 'acs'
option dhcp_url 'http://192.168.1.123:8080/openacs'