Ticket refs #14061 : DNSServers reports via TR069 blank/empty value

This commit is contained in:
Feten Besbes 2018-04-11 15:08:42 +01:00
parent 31039fae47
commit 4e4ed4bfd4
2 changed files with 6 additions and 0 deletions

View file

@ -581,6 +581,9 @@ int get_lan_dns(char *refparam, struct dmctx *ctx, char **value)
p++;
}
}
if ((*value)[0] == '\0') {
dmuci_get_value_by_section_string(lanargs->ldlansection, "ipaddr", value);
}
return 0;
}

View file

@ -157,6 +157,9 @@ int get_dns_server(char *refparam, struct dmctx *ctx, char **value)
p++;
}
}
if ((*value)[0] == '\0') {
dmuci_get_option_value_string("network", cur_dhcp_args.interface, "ipaddr", value);
}
return 0;
}