Skip to content

Commit

Permalink
luci-app-ssr-plus: fix mosdns error when mosdns option appears
Browse files Browse the repository at this point in the history
When mosdns was not installed, DNS mode did not make a judgement about mosdns installation when netlfix shunting was enabled.
  • Loading branch information
chika0801 authored Jan 4, 2024
1 parent 1777555 commit 9bce0c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/advanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ o:depends("netflix_enable", "1")

o = s:option(ListValue, "shunt_dns_mode", translate("DNS Query Mode For Shunt Mode"))
o:value("1", translate("Use DNS2SOCKS query and cache"))
if is_finded("mosdns") then
o:value("2", translate("Use MOSDNS query"))
end
o:depends("netflix_enable", "1")
o.default = 1

Expand Down

0 comments on commit 9bce0c6

Please sign in to comment.