We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07c1382 commit 8ce1f41Copy full SHA for 8ce1f41
package/openwrt/files/etc/init.d/smartdns
@@ -119,8 +119,10 @@ stop_main_dns()
119
uci -q set dhcp.@dnsmasq[0].dns_redirect=1
120
uci -q delete dhcp.@dnsmasq[0].old_dns_redirect
121
}
122
- uci -q delete dhcp.@dnsmasq[0].port
+ [ "$dnsmasq_port" = "0" ] && {
123
+ uci -q set dhcp.@dnsmasq[0].port="53"
124
uci -q del_list dhcp.lan.dhcp_option="6,$hostip"
125
+ }
126
uci commit dhcp
127
[ "$norestart" != "1" ] && /etc/init.d/dnsmasq reload
128
0 commit comments