Explorar o código

bug:fix replace dnsmasq with port 53

rufengsuixing %!s(int64=5) %!d(string=hai) anos
pai
achega
d45e97b709
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      root/etc/init.d/AdGuardHome

+ 1 - 0
root/etc/init.d/AdGuardHome

@@ -196,6 +196,7 @@ do_redirect()
 	config_get "old_redirect" "$section" "old_redirect" "none"
 	config_get "old_port" "$section" "old_port" "0"
 	config_get "old_enabled" "$section" "old_enabled" "0"
+	uci get dhcp.@dnsmasq[0].port || uci set dhcp.@dnsmasq[0].port="53"
 	if [ "$old_enabled" = "1" -a "$old_redirect" == "exchange" ]; then
 		AdGuardHome_PORT=$(uci get dhcp.@dnsmasq[0].port 2>/dev/null)
 	fi