From 1ba28906a2f08c03e5e21db68d829286223fc813 Mon Sep 17 00:00:00 2001 From: fujr Date: Fri, 15 Nov 2024 14:46:48 +0800 Subject: [PATCH] Add Google DNS to modem configuration and remove redundant entries --- luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh index 2b71ca9..ef9555b 100755 --- a/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh +++ b/luci/luci-app-qmodem/root/usr/share/qmodem/modem_dial.sh @@ -378,6 +378,7 @@ set_if() uci set network.${interface_name}.metric="${metric}" uci add_list network.${interface_name}.dns='114.114.114.114' uci add_list network.${interface_name}.dns='119.29.29.29' + uci add_list network.${interface_name}.dns='8.8.8.8' local num=$(uci show firewall | grep "name='wan'" | wc -l) local wwan_num=$(uci -q get firewall.@zone[$num].network | grep -w "${interface_name}" | wc -l) if [ "$wwan_num" = "0" ]; then @@ -491,9 +492,6 @@ set_if() if [ "$env4" -eq 1 ];then uci set network.${interface_name}.proto="${proto}" uci set network.${interface_name}.metric="${metric}" - uci add_list network.${interface_name}.dns='114.114.114.114' - uci add_list network.${interface_name}.dns='119.29.29.29' - uci add_list network.${interface_name}.dns='8.8.8.8' fi if [ "$env6" -eq 1 ];then uci set network.${interface6_name}.proto="${protov6}"