luci-app-mosdns: fix static ip mode cannot read local dns
This commit is contained in:
parent
d67faae180
commit
ea0d472cac
@ -12,7 +12,8 @@ logfile_path() (
|
|||||||
|
|
||||||
interface_dns() (
|
interface_dns() (
|
||||||
peerdns=$(uci -q get network.wan.peerdns)
|
peerdns=$(uci -q get network.wan.peerdns)
|
||||||
if [ "$peerdns" -eq 0 ]; then
|
proto=$(uci -q get network.wan.proto)
|
||||||
|
if [ "$peerdns" -eq 0 ] || [ "$proto" = "static" ]; then
|
||||||
ubus call network.interface.wan status | jsonfilter -e "@['dns-server'][$1]"
|
ubus call network.interface.wan status | jsonfilter -e "@['dns-server'][$1]"
|
||||||
else
|
else
|
||||||
ubus call network.interface.wan status | jsonfilter -e "@['inactive']['dns-server'][$1]"
|
ubus call network.interface.wan status | jsonfilter -e "@['inactive']['dns-server'][$1]"
|
||||||
|
Loading…
Reference in New Issue
Block a user