diff options
author | Lech Perczak <lech.perczak@gmail.com> | 2021-07-19 19:15:53 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2023-04-29 21:33:04 +0200 |
commit | c84bf89b3a8f6c93ad30a906b514edcf0077bb51 (patch) | |
tree | ae9f55742429ee271db9a49db7adac2968d8282e /package/network | |
parent | 9bb4b9a968ab72aaca199a6c21b29adbeb83a839 (diff) | |
download | upstream-c84bf89b3a8f6c93ad30a906b514edcf0077bb51.tar.gz upstream-c84bf89b3a8f6c93ad30a906b514edcf0077bb51.tar.bz2 upstream-c84bf89b3a8f6c93ad30a906b514edcf0077bb51.zip |
umbim: inherit "peerdns" option from parent interface
MBIM protocol handler should intherit "peerdns" options from parent
interface on sub-interfaces, otherwise upstream DNS servers are applied
regardless of configuration.
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'package/network')
-rwxr-xr-x | package/network/utils/umbim/files/lib/netifd/proto/mbim.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh index 3867411818..133c6ef5e6 100755 --- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh +++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh @@ -187,7 +187,7 @@ _proto_mbim_setup() { json_close_array json_add_string gateway "$ipv4gateway" json_add_array dns - json_add_string "" "$ipv4dnsserver" + [ "$peerdns" = 0 ] || json_add_string "" "$ipv4dnsserver" json_close_array proto_add_dynamic_defaults json_close_object @@ -204,7 +204,7 @@ _proto_mbim_setup() { json_close_array json_add_string ip6gw "$ipv6gateway" json_add_array dns - json_add_string "" "$ipv6dnsserver" + [ "$peerdns" = 0 ] || json_add_string "" "$ipv6dnsserver" json_close_array proto_add_dynamic_defaults json_close_object |