This is required to add available dns servers in ifstatus output,
required by downstream tools to receive information of the configured
DNS server on the wwan interface.
This has no effect on the dns server selection, as peerdns has the
desired effect within netifd.
Signed-off-by: Florian Maurer <f.maurer@outlook.de>
json_add_string proto "dhcp"
fi
- [ "$peerdns" = 0 -a "$dhcp" != 1 ] || {
+ [ "$dhcp" != 1 ] || {
json_add_array dns
for server in $(_proto_mbim_get_field ipv4dnsserver "$mbimconfig"); do
json_add_string "" "$server"
[ "$sourcefilter" = "0" ] && json_add_boolean sourcefilter "0"
fi
- [ "$peerdns" = 0 -a "$dhcpv6" != 1 ] || {
+ [ "$dhcpv6" != 1 ] || {
json_add_array dns
for server in $(_proto_mbim_get_field ipv6dnsserver "$mbimconfig"); do
json_add_string "" "$server"