luci-app-mosdns: default value

This commit is contained in:
sbwml 2023-09-21 03:23:17 +08:00
parent e7a7ed437a
commit 1eb43a6ead
5 changed files with 7 additions and 7 deletions

View File

@ -40,8 +40,8 @@ o.default = "info"
o:depends("configfile", "/etc/mosdns/config.yaml") o:depends("configfile", "/etc/mosdns/config.yaml")
o = s:taboption("basic", Value, "logfile", translate("Log File")) o = s:taboption("basic", Value, "logfile", translate("Log File"))
o.placeholder = "/tmp/mosdns.log" o.placeholder = "/var/log/mosdns.log"
o.default = "/tmp/mosdns.log" o.default = "/var/log/mosdns.log"
o:depends("configfile", "/etc/mosdns/config.yaml") 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")) 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 = 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.datatype = "and(uinteger,min(1),max(3))"
o.default = "1" o.default = "2"
o:depends("configfile", "/etc/mosdns/config.yaml") 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")) 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"))

View File

@ -170,7 +170,7 @@ msgid "Remote DNS"
msgstr "远程 DNS" msgstr "远程 DNS"
msgid "Concurrent" 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" msgid "DNS query request concurrency, The number of upstream DNS servers that are allowed to initiate requests at the same time"
msgstr "DNS 查询请求并发数,允许同时发起请求的上游 DNS 服务器数量" msgstr "DNS 查询请求并发数,允许同时发起请求的上游 DNS 服务器数量"

View File

@ -9,7 +9,7 @@ config mosdns 'config'
option adblock '0' option adblock '0'
option configfile '/etc/mosdns/config.yaml' option configfile '/etc/mosdns/config.yaml'
option log_level 'info' option log_level 'info'
option logfile '/tmp/mosdns.log' option logfile '/var/log/mosdns.log'
option cache_size '8000' option cache_size '8000'
option cache_survival_time '86400' option cache_survival_time '86400'
option dump_file '0' option dump_file '0'

View File

@ -45,7 +45,7 @@ get_config() {
config_get geo_update_day_time $1 geo_update_day_time 2 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 geo_update_week_time $1 geo_update_week_time "*"
config_get listen_port $1 listen_port 5335 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 log_level $1 log_level "info"
config_get maximum_ttl_custom $1 maximum_ttl 0 config_get maximum_ttl_custom $1 maximum_ttl 0
config_get minimal_ttl_custom $1 minimal_ttl 0 config_get minimal_ttl_custom $1 minimal_ttl 0

View File

@ -1,6 +1,6 @@
log: log:
level: info level: info
file: "/tmp/mosdns.log" file: "/var/log/mosdns.log"
# API 入口设置 # API 入口设置
api: api: