Skip to content

Commit 8ce1f41

Browse files
authored
Restore port 53 of dnsmasq after the smartdns is stopped.
1 parent 07c1382 commit 8ce1f41

File tree

1 file changed

+3
-1
lines changed
  • package/openwrt/files/etc/init.d

1 file changed

+3
-1
lines changed

package/openwrt/files/etc/init.d/smartdns

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,10 @@ stop_main_dns()
119119
uci -q set dhcp.@dnsmasq[0].dns_redirect=1
120120
uci -q delete dhcp.@dnsmasq[0].old_dns_redirect
121121
}
122-
uci -q delete dhcp.@dnsmasq[0].port
122+
[ "$dnsmasq_port" = "0" ] && {
123+
uci -q set dhcp.@dnsmasq[0].port="53"
123124
uci -q del_list dhcp.lan.dhcp_option="6,$hostip"
125+
}
124126
uci commit dhcp
125127
[ "$norestart" != "1" ] && /etc/init.d/dnsmasq reload
126128
}

0 commit comments

Comments
 (0)