Skip to content

Commit

Permalink
luci-app-mosdns: default value
Browse files Browse the repository at this point in the history
  • Loading branch information
sbwml committed Sep 20, 2023
1 parent e7a7ed4 commit 1eb43a6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions luci-app-mosdns/luasrc/model/cbi/mosdns/basic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion luci-app-mosdns/po/zh-cn/mosdns.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 服务器数量"
Expand Down
2 changes: 1 addition & 1 deletion luci-app-mosdns/root/etc/config/mosdns
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion luci-app-mosdns/root/etc/init.d/mosdns
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion luci-app-mosdns/root/etc/mosdns/config_custom.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
log:
level: info
file: "/tmp/mosdns.log"
file: "/var/log/mosdns.log"

# API 入口设置
api:
Expand Down

0 comments on commit 1eb43a6

Please sign in to comment.