mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-14 03:49:11 +01:00
Get ACS URL from /etc/config instead of /var/state in case of DHCP
This commit is contained in:
parent
8a1c125ddb
commit
d64075bda9
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ static int get_management_server_url(char *refparam, struct dmctx *ctx, void *da
|
|||
|
||||
dmuci_get_option_value_string("cwmp", "acs", "dhcp_discovery", &dhcp);
|
||||
dmuci_get_option_value_string("cwmp", "acs", "url", &url);
|
||||
dmuci_get_option_value_string_varstate("cwmp", "acs", "dhcp_url", &provisioning_value);
|
||||
dmuci_get_option_value_string("cwmp", "acs", "dhcp_url", &provisioning_value);
|
||||
|
||||
if ( ((dhcp && strcmp(dhcp, "enable") == 0 ) || ((url == NULL) || (url[0] == '\0'))) && ((provisioning_value != NULL) && (provisioning_value[0] != '\0')) )
|
||||
*value = provisioning_value;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue