mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-02-12 19:10:07 +01:00
Ticket refs #14061 : DNSServers reports via TR069 blank/empty value
This commit is contained in:
parent
31039fae47
commit
4e4ed4bfd4
2 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue