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>
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
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