]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
package: utils: umbim: add dns servers independent of peerdns
authorFlorian Maurer <f.maurer@outlook.de>
Mon, 29 Dec 2025 00:30:27 +0000 (01:30 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 26 Jul 2026 14:09:25 +0000 (16:09 +0200)
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>
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh

index adf00b96ce64f4029504475e59bef29bd965bf60..2553ada406397bb48fe206f2a190bfd5c2b71e24 100755 (executable)
@@ -253,7 +253,7 @@ _proto_mbim_setup() {
                        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"
@@ -298,7 +298,7 @@ _proto_mbim_setup() {
                        [ "$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"