mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-02 20:13:10 +01:00
DHCPv4: fic the value of DHCPv4.Server.Pool.{i}.Enable parameter
This commit is contained in:
parent
dc554fa385
commit
a273183599
1 changed files with 1 additions and 4 deletions
|
|
@ -756,10 +756,7 @@ static int get_dhcp_enable(char *refparam, struct dmctx *ctx, void *data, char *
|
|||
|
||||
uci_foreach_option_eq("dhcp", "dhcp", "interface", ((struct dhcp_args *)data)->interface, s) {
|
||||
dmuci_get_value_by_section_string(s, "ignore", value);
|
||||
if ((*value)[0] == '\0')
|
||||
*value = "1";
|
||||
else
|
||||
*value = "0";
|
||||
*value = ((*value)[0] == '1') ? "0" : "1";
|
||||
return 0;
|
||||
}
|
||||
*value = "0";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue