diff --git a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh index e45ad20d1..50657209d 100755 --- a/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh +++ b/luci-app-passwall/root/usr/share/passwall/helper_dnsmasq.sh @@ -45,8 +45,8 @@ logic_restart() { for server in $(uci -q get dhcp.@dnsmasq[0].server); do [ -n "$(echo $server | grep '\/')" ] || uci -q del_list dhcp.@dnsmasq[0].server="$server" done - restore_servers /etc/init.d/dnsmasq restart >/dev/null 2>&1 + restore_servers else /etc/init.d/dnsmasq restart >/dev/null 2>&1 fi