diff --git a/luci-app-mosdns/luasrc/model/cbi/mosdns/basic.lua b/luci-app-mosdns/luasrc/model/cbi/mosdns/basic.lua index 67a3ac0..0b925ad 100644 --- a/luci-app-mosdns/luasrc/model/cbi/mosdns/basic.lua +++ b/luci-app-mosdns/luasrc/model/cbi/mosdns/basic.lua @@ -40,8 +40,8 @@ o.default = "info" o:depends("configfile", "/etc/mosdns/config.yaml") o = s:taboption("basic", Value, "logfile", translate("Log File")) -o.placeholder = "/tmp/mosdns.log" -o.default = "/tmp/mosdns.log" +o.placeholder = "/var/log/mosdns.log" +o.default = "/var/log/mosdns.log" o:depends("configfile", "/etc/mosdns/config.yaml") o = s:taboption("basic", Flag, "redirect", translate("DNS Forward"), translate("Forward Dnsmasq Domain Name resolution requests to MosDNS")) @@ -92,7 +92,7 @@ s:tab("advanced", translate("Advanced Options")) o = s:taboption("advanced", Value, "concurrent", translate("Concurrent"), translate("DNS query request concurrency, The number of upstream DNS servers that are allowed to initiate requests at the same time")) o.datatype = "and(uinteger,min(1),max(3))" -o.default = "1" +o.default = "2" o:depends("configfile", "/etc/mosdns/config.yaml") o = s:taboption("advanced", Value, "max_conns", translate("Maximum Connections"), translate("Set the Maximum connections for DoH and pipeline's TCP/DoT, Except for the HTTP/3 protocol")) diff --git a/luci-app-mosdns/po/zh-cn/mosdns.po b/luci-app-mosdns/po/zh-cn/mosdns.po index 944c9ff..762cd90 100644 --- a/luci-app-mosdns/po/zh-cn/mosdns.po +++ b/luci-app-mosdns/po/zh-cn/mosdns.po @@ -170,7 +170,7 @@ msgid "Remote DNS" msgstr "远程 DNS" msgid "Concurrent" -msgstr "DNS 服务器并发数(默认 1)" +msgstr "DNS 服务器并发数(默认 2)" msgid "DNS query request concurrency, The number of upstream DNS servers that are allowed to initiate requests at the same time" msgstr "DNS 查询请求并发数,允许同时发起请求的上游 DNS 服务器数量" diff --git a/luci-app-mosdns/root/etc/config/mosdns b/luci-app-mosdns/root/etc/config/mosdns index b49dd84..8de3b6c 100644 --- a/luci-app-mosdns/root/etc/config/mosdns +++ b/luci-app-mosdns/root/etc/config/mosdns @@ -9,7 +9,7 @@ config mosdns 'config' option adblock '0' option configfile '/etc/mosdns/config.yaml' option log_level 'info' - option logfile '/tmp/mosdns.log' + option logfile '/var/log/mosdns.log' option cache_size '8000' option cache_survival_time '86400' option dump_file '0' diff --git a/luci-app-mosdns/root/etc/init.d/mosdns b/luci-app-mosdns/root/etc/init.d/mosdns index d46d99c..8181141 100755 --- a/luci-app-mosdns/root/etc/init.d/mosdns +++ b/luci-app-mosdns/root/etc/init.d/mosdns @@ -45,7 +45,7 @@ get_config() { config_get geo_update_day_time $1 geo_update_day_time 2 config_get geo_update_week_time $1 geo_update_week_time "*" config_get listen_port $1 listen_port 5335 - config_get log_file $1 logfile "/tmp/mosdns.log" + config_get log_file $1 logfile "/var/log/mosdns.log" config_get log_level $1 log_level "info" config_get maximum_ttl_custom $1 maximum_ttl 0 config_get minimal_ttl_custom $1 minimal_ttl 0 diff --git a/luci-app-mosdns/root/etc/mosdns/config_custom.yaml b/luci-app-mosdns/root/etc/mosdns/config_custom.yaml index 3458d89..15347bc 100644 --- a/luci-app-mosdns/root/etc/mosdns/config_custom.yaml +++ b/luci-app-mosdns/root/etc/mosdns/config_custom.yaml @@ -1,6 +1,6 @@ log: level: info - file: "/tmp/mosdns.log" + file: "/var/log/mosdns.log" # API 入口设置 api: