mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-09-14 20:34:11 +08:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9028e829a1 | ||
|
|
69b7db797a |
@@ -5,7 +5,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=internet-detector-mod-email
|
PKG_NAME:=internet-detector-mod-email
|
||||||
PKG_VERSION:=1.7.3
|
PKG_VERSION:=1.7.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=internet-detector-mod-modem-restart
|
PKG_NAME:=internet-detector-mod-modem-restart
|
||||||
PKG_VERSION:=1.7.3
|
PKG_VERSION:=1.7.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=internet-detector-mod-telegram
|
PKG_NAME:=internet-detector-mod-telegram
|
||||||
PKG_VERSION:=1.7.3
|
PKG_VERSION:=1.7.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=internet-detector
|
PKG_NAME:=internet-detector
|
||||||
PKG_VERSION:=1.7.3
|
PKG_VERSION:=1.7.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/luci-app-internet-detector>
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ local uci = require("uci")
|
|||||||
-- Default settings
|
-- Default settings
|
||||||
|
|
||||||
local InternetDetector = {
|
local InternetDetector = {
|
||||||
appName = "internet-detector",
|
appName = "internet-detector",
|
||||||
libDir = "/usr/lib/lua",
|
libDir = "/usr/lib/lua",
|
||||||
logLevels = {
|
logLevels = {
|
||||||
emerg = { level = syslog.LOG_EMERG, num = 0 },
|
emerg = { level = syslog.LOG_EMERG, num = 0 },
|
||||||
alert = { level = syslog.LOG_ALERT, num = 1 },
|
alert = { level = syslog.LOG_ALERT, num = 1 },
|
||||||
@@ -24,18 +24,32 @@ local InternetDetector = {
|
|||||||
info = { level = syslog.LOG_INFO, num = 6 },
|
info = { level = syslog.LOG_INFO, num = 6 },
|
||||||
debug = { level = syslog.LOG_DEBUG, num = 7 },
|
debug = { level = syslog.LOG_DEBUG, num = 7 },
|
||||||
},
|
},
|
||||||
pingCmd = "/bin/ping",
|
pingCmd = "/bin/ping",
|
||||||
pingParams = "-c 1",
|
pingParams = "-c 1",
|
||||||
curlExec = "/usr/bin/curl",
|
curlExec = "/usr/bin/curl",
|
||||||
curlParams = '-s -g --no-keepalive --head --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0"',
|
curlParams = '-s -g --no-keepalive --head --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"',
|
||||||
mode = 0, -- 0: disabled, 1: Service, 2: UI detector
|
curlHttpOkCodes = {
|
||||||
loggingLevel = 6,
|
[200] = true,
|
||||||
hostname = "OpenWrt",
|
[202] = true,
|
||||||
uiRunTime = 30,
|
[203] = true,
|
||||||
noModules = false,
|
[204] = true,
|
||||||
uiAvailModules = { mod_public_ip = true },
|
[206] = true,
|
||||||
debug = false,
|
[300] = true,
|
||||||
serviceConfig = {
|
[301] = true,
|
||||||
|
[302] = true,
|
||||||
|
[303] = true,
|
||||||
|
[304] = true,
|
||||||
|
[307] = true,
|
||||||
|
[308] = true,
|
||||||
|
},
|
||||||
|
mode = 0, -- 0: disabled, 1: Service, 2: UI detector
|
||||||
|
loggingLevel = 6,
|
||||||
|
hostname = "OpenWrt",
|
||||||
|
uiRunTime = 30,
|
||||||
|
noModules = false,
|
||||||
|
uiAvailModules = { mod_public_ip = true },
|
||||||
|
debug = false,
|
||||||
|
serviceConfig = {
|
||||||
hosts = {
|
hosts = {
|
||||||
[1] = "8.8.8.8",
|
[1] = "8.8.8.8",
|
||||||
[2] = "1.1.1.1",
|
[2] = "1.1.1.1",
|
||||||
@@ -43,7 +57,7 @@ local InternetDetector = {
|
|||||||
urls = {
|
urls = {
|
||||||
[1] = "https://www.google.com",
|
[1] = "https://www.google.com",
|
||||||
},
|
},
|
||||||
check_type = 0, -- 0: TCP, 1: ICMP
|
check_type = 0, -- 0: TCP, 1: ICMP, 2: URL test
|
||||||
tcp_port = 53,
|
tcp_port = 53,
|
||||||
icmp_packet_size = 56,
|
icmp_packet_size = 56,
|
||||||
interval_up = 30,
|
interval_up = 30,
|
||||||
@@ -58,13 +72,13 @@ local InternetDetector = {
|
|||||||
iface = nil,
|
iface = nil,
|
||||||
instance = nil,
|
instance = nil,
|
||||||
},
|
},
|
||||||
modules = {},
|
modules = {},
|
||||||
parsedHosts = {},
|
parsedHosts = {},
|
||||||
proxyAuthString = "",
|
proxyAuthString = "",
|
||||||
proxyString = "",
|
proxyString = "",
|
||||||
uiCounter = 0,
|
uiCounter = 0,
|
||||||
pidFile = nil,
|
pidFile = nil,
|
||||||
statusFile = nil,
|
statusFile = nil,
|
||||||
}
|
}
|
||||||
InternetDetector.configDir = string.format("/etc/%s", InternetDetector.appName)
|
InternetDetector.configDir = string.format("/etc/%s", InternetDetector.appName)
|
||||||
InternetDetector.modulesDir = string.format(
|
InternetDetector.modulesDir = string.format(
|
||||||
@@ -280,7 +294,6 @@ function InternetDetector:TCPConnectionToHost(host, port)
|
|||||||
if not ok then
|
if not ok then
|
||||||
self:debugOutput(string.format(
|
self:debugOutput(string.format(
|
||||||
"SOCKET ERROR: %s, %s", errMsg, errNum))
|
"SOCKET ERROR: %s, %s", errMsg, errNum))
|
||||||
|
|
||||||
unistd.close(sock)
|
unistd.close(sock)
|
||||||
return retCode
|
return retCode
|
||||||
end
|
end
|
||||||
@@ -380,7 +393,7 @@ function InternetDetector:checkURL(url)
|
|||||||
if retCode == 0 and data then
|
if retCode == 0 and data then
|
||||||
httpCode = self:getHTTPCode(data)
|
httpCode = self:getHTTPCode(data)
|
||||||
end
|
end
|
||||||
return (httpCode ~= 200) and 1 or 0
|
return (not self.curlHttpOkCodes[httpCode]) and 1 or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
function InternetDetector:exit()
|
function InternetDetector:exit()
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ local Module = {
|
|||||||
requestAttempts = 2,
|
requestAttempts = 2,
|
||||||
timeout = 3,
|
timeout = 3,
|
||||||
curlExec = "/usr/bin/curl",
|
curlExec = "/usr/bin/curl",
|
||||||
curlParams = '-s -g --no-keepalive --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0"',
|
curlParams = '-s -g --no-keepalive --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:153.0) Gecko/20100101 Firefox/153.0"',
|
||||||
providers = {
|
providers = {
|
||||||
opendns1 = {
|
opendns1 = {
|
||||||
name = "opendns1", type = "dns", host = "myip.opendns.com",
|
name = "opendns1", type = "dns", host = "myip.opendns.com",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-internet-detector
|
PKG_NAME:=luci-app-internet-detector
|
||||||
PKG_VERSION:=1.7.3
|
PKG_VERSION:=1.7.4
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
LUCI_TITLE:=LuCI support for internet-detector
|
LUCI_TITLE:=LuCI support for internet-detector
|
||||||
LUCI_DEPENDS:=+internet-detector
|
LUCI_DEPENDS:=+internet-detector
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-mosdns
|
PKG_NAME:=luci-app-mosdns
|
||||||
PKG_VERSION:=1.7.6
|
PKG_VERSION:=1.7.7
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
LUCI_TITLE:=LuCI Support for mosdns
|
LUCI_TITLE:=LuCI Support for mosdns
|
||||||
|
|||||||
@@ -320,6 +320,30 @@ return view.extend({
|
|||||||
o.default = 86400;
|
o.default = 86400;
|
||||||
o.depends('cache', '1');
|
o.depends('cache', '1');
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Flag, 'prefetch', _('Cache Prefetching'),
|
||||||
|
_('Proactively refresh hot cache entries in the background before they expire.'));
|
||||||
|
o.rmempty = false;
|
||||||
|
o.default = false;
|
||||||
|
o.depends('cache', '1');
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Value, 'prefetch_before_expire', _('Prefetch Before Expire'),
|
||||||
|
_('Prefetch when the remaining TTL is less than this value (in seconds).'));
|
||||||
|
o.datatype = 'and(uinteger,min(1))';
|
||||||
|
o.default = 10;
|
||||||
|
o.depends('prefetch', '1');
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Value, 'prefetch_min_hits', _('Prefetch Min Hits'),
|
||||||
|
_('Minimum cache hits required since the last refresh to trigger a prefetch.'));
|
||||||
|
o.datatype = 'and(uinteger,min(1))';
|
||||||
|
o.default = 3;
|
||||||
|
o.depends('prefetch', '1');
|
||||||
|
|
||||||
|
o = s.taboption('advanced', form.Value, 'prefetch_scan_interval', _('Prefetch Scan Interval'),
|
||||||
|
_('Interval for the background thread to scan the cache for prefetching (in seconds).'));
|
||||||
|
o.datatype = 'and(uinteger,min(1))';
|
||||||
|
o.default = 5;
|
||||||
|
o.depends('prefetch', '1');
|
||||||
|
|
||||||
o = s.taboption('advanced', form.Flag, 'dump_file', _('Cache Dump'),
|
o = s.taboption('advanced', form.Flag, 'dump_file', _('Cache Dump'),
|
||||||
_('Save the cache locally and reload the cache dump on the next startup'));
|
_('Save the cache locally and reload the cache dump on the next startup'));
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ msgstr "Content-Type: text/plain; charset=UTF-8"
|
|||||||
msgid "360 Public DNS (DNS over HTTPS)"
|
msgid "360 Public DNS (DNS over HTTPS)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:356
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:380
|
||||||
msgid "ADblock Source"
|
msgid "ADblock Source"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:395
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:419
|
||||||
msgid "API Listen port"
|
msgid "API Listen port"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ msgstr ""
|
|||||||
msgid "Apple domains optimization"
|
msgid "Apple domains optimization"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:330
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:354
|
||||||
msgid "Auto Save Cache Interval"
|
msgid "Auto Save Cache Interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -105,7 +105,7 @@ msgstr ""
|
|||||||
msgid "Basic Setting"
|
msgid "Basic Setting"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:348
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:372
|
||||||
msgid ""
|
msgid ""
|
||||||
"Block DNS RR Type 65 records (HTTPS/SVCB, used for HTTP/3, ECH, etc.), force "
|
"Block DNS RR Type 65 records (HTTPS/SVCB, used for HTTP/3, ECH, etc.), force "
|
||||||
"using only A/AAAA records."
|
"using only A/AAAA records."
|
||||||
@@ -129,10 +129,14 @@ msgid ""
|
|||||||
"resolvers you specify as upstreams"
|
"resolvers you specify as upstreams"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:323
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:347
|
||||||
msgid "Cache Dump"
|
msgid "Cache Dump"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:323
|
||||||
|
msgid "Cache Prefetching"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js:150
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js:150
|
||||||
msgid "Check And Update"
|
msgid "Check And Update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -178,7 +182,7 @@ msgstr ""
|
|||||||
msgid "CloudFlare Public DNS (1.1.1.1)"
|
msgid "CloudFlare Public DNS (1.1.1.1)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:380
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:404
|
||||||
msgid "Cloudflare IP Ranges"
|
msgid "Cloudflare IP Ranges"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -198,7 +202,7 @@ msgstr ""
|
|||||||
msgid "Config File"
|
msgid "Config File"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:426
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:450
|
||||||
msgid "Configuration Editor"
|
msgid "Configuration Editor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -216,7 +220,7 @@ msgid ""
|
|||||||
"supports domain matching rules)."
|
"supports domain matching rules)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:375
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:399
|
||||||
msgid "Custom IP"
|
msgid "Custom IP"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -258,7 +262,7 @@ msgstr ""
|
|||||||
msgid "Default Config"
|
msgid "Default Config"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:347
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:371
|
||||||
msgid "Disable RR Type 65 (HTTPS/SVCB)"
|
msgid "Disable RR Type 65 (HTTPS/SVCB)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -280,7 +284,7 @@ msgstr ""
|
|||||||
msgid "Enable Auto Database Update"
|
msgid "Enable Auto Database Update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:352
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:376
|
||||||
msgid "Enable DNS ADblock"
|
msgid "Enable DNS ADblock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -302,15 +306,15 @@ msgid "Enable this option fallback policy forces forwarding to remote DNS"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:142
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:142
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:368
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:392
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:453
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:477
|
||||||
msgid "Enter the GeoIP.dat category to be exported, Allow add multiple tags"
|
msgid "Enter the GeoIP.dat category to be exported, Allow add multiple tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:448
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:472
|
||||||
msgid "Enter the GeoSite.dat category to be exported, Allow add multiple tags"
|
msgid "Enter the GeoSite.dat category to be exported, Allow add multiple tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -350,8 +354,8 @@ msgstr ""
|
|||||||
msgid "Every Wednesday"
|
msgid "Every Wednesday"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:449
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:473
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:454
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:478
|
||||||
msgid "Export directory: /var/mosdns"
|
msgid "Export directory: /var/mosdns"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -363,7 +367,7 @@ msgstr ""
|
|||||||
msgid "Failed to start update."
|
msgid "Failed to start update."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:403
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:427
|
||||||
msgid "Flush DNS Cache"
|
msgid "Flush DNS Cache"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -375,7 +379,7 @@ msgstr ""
|
|||||||
msgid "Flushing DNS Cache Success."
|
msgid "Flushing DNS Cache Success."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:401
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:425
|
||||||
msgid ""
|
msgid ""
|
||||||
"Flushing DNS Cache will clear any IP addresses or DNS records from MosDNS "
|
"Flushing DNS Cache will clear any IP addresses or DNS records from MosDNS "
|
||||||
"cache."
|
"cache."
|
||||||
@@ -411,7 +415,7 @@ msgstr ""
|
|||||||
msgid "GeoData Export"
|
msgid "GeoData Export"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:452
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:476
|
||||||
msgid "GeoIP Tags"
|
msgid "GeoIP Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -419,7 +423,7 @@ msgstr ""
|
|||||||
msgid "GeoIP Type"
|
msgid "GeoIP Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:447
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:471
|
||||||
msgid "GeoSite Tags"
|
msgid "GeoSite Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -458,7 +462,7 @@ msgstr ""
|
|||||||
msgid "IP Address"
|
msgid "IP Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:381
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:405
|
||||||
msgid ""
|
msgid ""
|
||||||
"IPv4 CIDR: <a href=\"https://www.cloudflare.com/ips-v4\" target=\"_blank"
|
"IPv4 CIDR: <a href=\"https://www.cloudflare.com/ips-v4\" target=\"_blank"
|
||||||
"\">https://www.cloudflare.com/ips-v4</a> <br /> IPv6 CIDR: <a href=\"https://"
|
"\">https://www.cloudflare.com/ips-v4</a> <br /> IPv6 CIDR: <a href=\"https://"
|
||||||
@@ -486,6 +490,12 @@ msgstr ""
|
|||||||
msgid "Info"
|
msgid "Info"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:342
|
||||||
|
msgid ""
|
||||||
|
"Interval for the background thread to scan the cache for prefetching (in "
|
||||||
|
"seconds)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:317
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:317
|
||||||
msgid "Lazy Cache TTL"
|
msgid "Lazy Cache TTL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -527,28 +537,33 @@ msgstr ""
|
|||||||
msgid "Logs"
|
msgid "Logs"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:369
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:393
|
||||||
msgid ""
|
msgid ""
|
||||||
"Match the parsing result with the Cloudflare IP ranges, and when there is a "
|
"Match the parsing result with the Cloudflare IP ranges, and when there is a "
|
||||||
"successful match, use the 'Custom IP' as the parsing result (experimental "
|
"successful match, use the 'Custom IP' as the parsing result (experimental "
|
||||||
"feature)"
|
"feature)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:341
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:365
|
||||||
msgid "Maximum TTL"
|
msgid "Maximum TTL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:335
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:359
|
||||||
msgid "Minimum TTL"
|
msgid "Minimum TTL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:342
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:336
|
||||||
|
msgid ""
|
||||||
|
"Minimum cache hits required since the last refresh to trigger a prefetch."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:366
|
||||||
msgid ""
|
msgid ""
|
||||||
"Modify the Maximum TTL value (seconds) for DNS answer results, 0 indicating "
|
"Modify the Maximum TTL value (seconds) for DNS answer results, 0 indicating "
|
||||||
"no modification"
|
"no modification"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:336
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:360
|
||||||
msgid ""
|
msgid ""
|
||||||
"Modify the Minimum TTL value (seconds) for DNS answer results, 0 indicating "
|
"Modify the Minimum TTL value (seconds) for DNS answer results, 0 indicating "
|
||||||
"no modification"
|
"no modification"
|
||||||
@@ -589,10 +604,31 @@ msgstr ""
|
|||||||
msgid "Please wait, this may take a few moments..."
|
msgid "Please wait, this may take a few moments..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:329
|
||||||
|
msgid "Prefetch Before Expire"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:335
|
||||||
|
msgid "Prefetch Min Hits"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:341
|
||||||
|
msgid "Prefetch Scan Interval"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:330
|
||||||
|
msgid "Prefetch when the remaining TTL is less than this value (in seconds)."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:301
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:301
|
||||||
msgid "Prevent DNS Leaks"
|
msgid "Prevent DNS Leaks"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:324
|
||||||
|
msgid ""
|
||||||
|
"Proactively refresh hot cache entries in the background before they expire."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:227
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:227
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:244
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:244
|
||||||
msgid "Quad9 Public DNS (149.112.112.112)"
|
msgid "Quad9 Public DNS (149.112.112.112)"
|
||||||
@@ -637,7 +673,7 @@ msgstr ""
|
|||||||
msgid "Rules"
|
msgid "Rules"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:324
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:348
|
||||||
msgid "Save the cache locally and reload the cache dump on the next startup"
|
msgid "Save the cache locally and reload the cache dump on the next startup"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -653,7 +689,7 @@ msgstr ""
|
|||||||
msgid "Streaming Media DNS server"
|
msgid "Streaming Media DNS server"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:359
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:383
|
||||||
msgid "Support for local files, such as: file:///var/mosdns/example.txt"
|
msgid "Support for local files, such as: file:///var/mosdns/example.txt"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -686,7 +722,7 @@ msgid ""
|
|||||||
"server)"
|
"server)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:427
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:451
|
||||||
msgid ""
|
msgid ""
|
||||||
"This is the content of the file '/etc/mosdns/config_custom.yaml' from which "
|
"This is the content of the file '/etc/mosdns/config_custom.yaml' from which "
|
||||||
"your MosDNS configuration will be generated. Only accepts configuration "
|
"your MosDNS configuration will be generated. Only accepts configuration "
|
||||||
@@ -701,7 +737,7 @@ msgstr ""
|
|||||||
msgid "TrafficRoute Public DNS (180.184.2.2)"
|
msgid "TrafficRoute Public DNS (180.184.2.2)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:442
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:466
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:43
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:43
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:48
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:48
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:67
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:67
|
||||||
@@ -765,7 +801,7 @@ msgid ""
|
|||||||
"domain matching rules)."
|
"domain matching rules)."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:357
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:381
|
||||||
msgid ""
|
msgid ""
|
||||||
"When using custom rule sources, please use rule types supported by MosDNS "
|
"When using custom rule sources, please use rule types supported by MosDNS "
|
||||||
"(domain list or AdGuardHome rules)."
|
"(domain list or AdGuardHome rules)."
|
||||||
|
|||||||
@@ -15,11 +15,11 @@ msgstr ""
|
|||||||
msgid "360 Public DNS (DNS over HTTPS)"
|
msgid "360 Public DNS (DNS over HTTPS)"
|
||||||
msgstr "360 安全 DNS(DNS over HTTPS)"
|
msgstr "360 安全 DNS(DNS over HTTPS)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:356
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:380
|
||||||
msgid "ADblock Source"
|
msgid "ADblock Source"
|
||||||
msgstr "广告过滤规则来源"
|
msgstr "广告过滤规则来源"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:395
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:419
|
||||||
msgid "API Listen port"
|
msgid "API Listen port"
|
||||||
msgstr "API 监听端口"
|
msgstr "API 监听端口"
|
||||||
|
|
||||||
@@ -97,7 +97,7 @@ msgstr "另一个更新正在进行中。"
|
|||||||
msgid "Apple domains optimization"
|
msgid "Apple domains optimization"
|
||||||
msgstr "Apple 域名解析优化"
|
msgstr "Apple 域名解析优化"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:330
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:354
|
||||||
msgid "Auto Save Cache Interval"
|
msgid "Auto Save Cache Interval"
|
||||||
msgstr "自动保存缓存间隔(秒)"
|
msgstr "自动保存缓存间隔(秒)"
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ msgstr "基本选项"
|
|||||||
msgid "Basic Setting"
|
msgid "Basic Setting"
|
||||||
msgstr "基本设置"
|
msgstr "基本设置"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:348
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:372
|
||||||
msgid ""
|
msgid ""
|
||||||
"Block DNS RR Type 65 records (HTTPS/SVCB, used for HTTP/3, ECH, etc.), force "
|
"Block DNS RR Type 65 records (HTTPS/SVCB, used for HTTP/3, ECH, etc.), force "
|
||||||
"using only A/AAAA records."
|
"using only A/AAAA records."
|
||||||
@@ -146,10 +146,14 @@ msgid ""
|
|||||||
"resolvers you specify as upstreams"
|
"resolvers you specify as upstreams"
|
||||||
msgstr "Bootstrap DNS 服务器用于解析您指定为上游的 DoH / DoT 解析器的 IP 地址"
|
msgstr "Bootstrap DNS 服务器用于解析您指定为上游的 DoH / DoT 解析器的 IP 地址"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:323
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:347
|
||||||
msgid "Cache Dump"
|
msgid "Cache Dump"
|
||||||
msgstr "自动保存缓存"
|
msgstr "自动保存缓存"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:323
|
||||||
|
msgid "Cache Prefetching"
|
||||||
|
msgstr "缓存预读"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js:150
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/update.js:150
|
||||||
msgid "Check And Update"
|
msgid "Check And Update"
|
||||||
msgstr "检查并更新"
|
msgstr "检查并更新"
|
||||||
@@ -195,7 +199,7 @@ msgstr "CloudFlare 公共 DNS(1.0.0.1)"
|
|||||||
msgid "CloudFlare Public DNS (1.1.1.1)"
|
msgid "CloudFlare Public DNS (1.1.1.1)"
|
||||||
msgstr "CloudFlare 公共 DNS(1.1.1.1)"
|
msgstr "CloudFlare 公共 DNS(1.1.1.1)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:380
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:404
|
||||||
msgid "Cloudflare IP Ranges"
|
msgid "Cloudflare IP Ranges"
|
||||||
msgstr "Cloudflare IP 范围"
|
msgstr "Cloudflare IP 范围"
|
||||||
|
|
||||||
@@ -215,7 +219,7 @@ msgstr "DNS 服务器并发数(默认 2)"
|
|||||||
msgid "Config File"
|
msgid "Config File"
|
||||||
msgstr "配置文件"
|
msgstr "配置文件"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:426
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:450
|
||||||
msgid "Configuration Editor"
|
msgid "Configuration Editor"
|
||||||
msgstr "配置编辑器"
|
msgstr "配置编辑器"
|
||||||
|
|
||||||
@@ -234,7 +238,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"自定义 Hosts 重写,如:baidu.com 10.0.0.1(每个规则一行,支持域名匹配规则)"
|
"自定义 Hosts 重写,如:baidu.com 10.0.0.1(每个规则一行,支持域名匹配规则)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:375
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:399
|
||||||
msgid "Custom IP"
|
msgid "Custom IP"
|
||||||
msgstr "自选 IP"
|
msgstr "自选 IP"
|
||||||
|
|
||||||
@@ -276,7 +280,7 @@ msgstr "调试"
|
|||||||
msgid "Default Config"
|
msgid "Default Config"
|
||||||
msgstr "内置预设"
|
msgstr "内置预设"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:347
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:371
|
||||||
msgid "Disable RR Type 65 (HTTPS/SVCB)"
|
msgid "Disable RR Type 65 (HTTPS/SVCB)"
|
||||||
msgstr "禁用 RR Type 65 (HTTPS/SVCB)"
|
msgstr "禁用 RR Type 65 (HTTPS/SVCB)"
|
||||||
|
|
||||||
@@ -299,7 +303,7 @@ msgstr "DoH/TCP/DoT 连接复用空闲保持时间(默认 30 秒)"
|
|||||||
msgid "Enable Auto Database Update"
|
msgid "Enable Auto Database Update"
|
||||||
msgstr "启用自动更新"
|
msgstr "启用自动更新"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:352
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:376
|
||||||
msgid "Enable DNS ADblock"
|
msgid "Enable DNS ADblock"
|
||||||
msgstr "启用 DNS 广告过滤"
|
msgstr "启用 DNS 广告过滤"
|
||||||
|
|
||||||
@@ -321,15 +325,15 @@ msgid "Enable this option fallback policy forces forwarding to remote DNS"
|
|||||||
msgstr "启用此选项 fallback 策略会强制转发到远程 DNS"
|
msgstr "启用此选项 fallback 策略会强制转发到远程 DNS"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:142
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:142
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:368
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:392
|
||||||
msgid "Enabled"
|
msgid "Enabled"
|
||||||
msgstr "启用"
|
msgstr "启用"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:453
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:477
|
||||||
msgid "Enter the GeoIP.dat category to be exported, Allow add multiple tags"
|
msgid "Enter the GeoIP.dat category to be exported, Allow add multiple tags"
|
||||||
msgstr "输入需要导出的 GeoIP.dat 类别条目,允许添加多个标签"
|
msgstr "输入需要导出的 GeoIP.dat 类别条目,允许添加多个标签"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:448
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:472
|
||||||
msgid "Enter the GeoSite.dat category to be exported, Allow add multiple tags"
|
msgid "Enter the GeoSite.dat category to be exported, Allow add multiple tags"
|
||||||
msgstr "填写需要导出的 GeoSite.dat 类别条目,允许添加多个标签"
|
msgstr "填写需要导出的 GeoSite.dat 类别条目,允许添加多个标签"
|
||||||
|
|
||||||
@@ -369,8 +373,8 @@ msgstr "每周二"
|
|||||||
msgid "Every Wednesday"
|
msgid "Every Wednesday"
|
||||||
msgstr "每周三"
|
msgstr "每周三"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:449
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:473
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:454
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:478
|
||||||
msgid "Export directory: /var/mosdns"
|
msgid "Export directory: /var/mosdns"
|
||||||
msgstr "导出目录:/var/mosdns"
|
msgstr "导出目录:/var/mosdns"
|
||||||
|
|
||||||
@@ -382,7 +386,7 @@ msgstr "清理日志失败:%s"
|
|||||||
msgid "Failed to start update."
|
msgid "Failed to start update."
|
||||||
msgstr "启动更新失败"
|
msgstr "启动更新失败"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:403
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:427
|
||||||
msgid "Flush DNS Cache"
|
msgid "Flush DNS Cache"
|
||||||
msgstr "刷新 DNS 缓存"
|
msgstr "刷新 DNS 缓存"
|
||||||
|
|
||||||
@@ -394,7 +398,7 @@ msgstr "刷新 DNS 缓存失败,请检查 MosDNS 状态是否在运行中。"
|
|||||||
msgid "Flushing DNS Cache Success."
|
msgid "Flushing DNS Cache Success."
|
||||||
msgstr "刷新 DNS 缓存成功"
|
msgstr "刷新 DNS 缓存成功"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:401
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:425
|
||||||
msgid ""
|
msgid ""
|
||||||
"Flushing DNS Cache will clear any IP addresses or DNS records from MosDNS "
|
"Flushing DNS Cache will clear any IP addresses or DNS records from MosDNS "
|
||||||
"cache."
|
"cache."
|
||||||
@@ -430,7 +434,7 @@ msgstr "全量:包含所有国家和私有 IP 地址。"
|
|||||||
msgid "GeoData Export"
|
msgid "GeoData Export"
|
||||||
msgstr "GeoData 导出"
|
msgstr "GeoData 导出"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:452
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:476
|
||||||
msgid "GeoIP Tags"
|
msgid "GeoIP Tags"
|
||||||
msgstr "GeoIP 标签"
|
msgstr "GeoIP 标签"
|
||||||
|
|
||||||
@@ -438,7 +442,7 @@ msgstr "GeoIP 标签"
|
|||||||
msgid "GeoIP Type"
|
msgid "GeoIP Type"
|
||||||
msgstr "GeoIP 类型"
|
msgstr "GeoIP 类型"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:447
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:471
|
||||||
msgid "GeoSite Tags"
|
msgid "GeoSite Tags"
|
||||||
msgstr "GeoSite 标签"
|
msgstr "GeoSite 标签"
|
||||||
|
|
||||||
@@ -477,7 +481,7 @@ msgstr ""
|
|||||||
msgid "IP Address"
|
msgid "IP Address"
|
||||||
msgstr "IP 地址"
|
msgstr "IP 地址"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:381
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:405
|
||||||
msgid ""
|
msgid ""
|
||||||
"IPv4 CIDR: <a href=\"https://www.cloudflare.com/ips-v4\" target=\"_blank"
|
"IPv4 CIDR: <a href=\"https://www.cloudflare.com/ips-v4\" target=\"_blank"
|
||||||
"\">https://www.cloudflare.com/ips-v4</a> <br /> IPv6 CIDR: <a href=\"https://"
|
"\">https://www.cloudflare.com/ips-v4</a> <br /> IPv6 CIDR: <a href=\"https://"
|
||||||
@@ -505,6 +509,12 @@ msgstr "空闲超时"
|
|||||||
msgid "Info"
|
msgid "Info"
|
||||||
msgstr "信息"
|
msgstr "信息"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:342
|
||||||
|
msgid ""
|
||||||
|
"Interval for the background thread to scan the cache for prefetching (in "
|
||||||
|
"seconds)."
|
||||||
|
msgstr "后台线程扫描缓存以进行预取的时间间隔(单位:秒)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:317
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:317
|
||||||
msgid "Lazy Cache TTL"
|
msgid "Lazy Cache TTL"
|
||||||
msgstr "乐观缓存 TTL"
|
msgstr "乐观缓存 TTL"
|
||||||
@@ -546,7 +556,7 @@ msgstr "日志等级"
|
|||||||
msgid "Logs"
|
msgid "Logs"
|
||||||
msgstr "日志"
|
msgstr "日志"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:369
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:393
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
"Match the parsing result with the Cloudflare IP ranges, and when there is a "
|
"Match the parsing result with the Cloudflare IP ranges, and when there is a "
|
||||||
@@ -556,21 +566,26 @@ msgstr ""
|
|||||||
"将解析结果与 Cloudflare IP 范围进行匹配,当匹配成功时,使用 “自选 IP” 作为解"
|
"将解析结果与 Cloudflare IP 范围进行匹配,当匹配成功时,使用 “自选 IP” 作为解"
|
||||||
"析结果(实验性功能)"
|
"析结果(实验性功能)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:341
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:365
|
||||||
msgid "Maximum TTL"
|
msgid "Maximum TTL"
|
||||||
msgstr "覆盖最大 TTL 值(默认 0)"
|
msgstr "覆盖最大 TTL 值(默认 0)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:335
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:359
|
||||||
msgid "Minimum TTL"
|
msgid "Minimum TTL"
|
||||||
msgstr "覆盖最小 TTL 值(默认 0)"
|
msgstr "覆盖最小 TTL 值(默认 0)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:342
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:336
|
||||||
|
msgid ""
|
||||||
|
"Minimum cache hits required since the last refresh to trigger a prefetch."
|
||||||
|
msgstr "触发预读所需的最小缓存命中次数(自上次刷新起)"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:366
|
||||||
msgid ""
|
msgid ""
|
||||||
"Modify the Maximum TTL value (seconds) for DNS answer results, 0 indicating "
|
"Modify the Maximum TTL value (seconds) for DNS answer results, 0 indicating "
|
||||||
"no modification"
|
"no modification"
|
||||||
msgstr "修改 DNS 应答结果的最大 TTL 值(秒),0 表示不修改"
|
msgstr "修改 DNS 应答结果的最大 TTL 值(秒),0 表示不修改"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:336
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:360
|
||||||
msgid ""
|
msgid ""
|
||||||
"Modify the Minimum TTL value (seconds) for DNS answer results, 0 indicating "
|
"Modify the Minimum TTL value (seconds) for DNS answer results, 0 indicating "
|
||||||
"no modification"
|
"no modification"
|
||||||
@@ -613,10 +628,31 @@ msgstr ""
|
|||||||
msgid "Please wait, this may take a few moments..."
|
msgid "Please wait, this may take a few moments..."
|
||||||
msgstr "请稍候,这可能需要一点时间..."
|
msgstr "请稍候,这可能需要一点时间..."
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:329
|
||||||
|
msgid "Prefetch Before Expire"
|
||||||
|
msgstr "预读触发阈值"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:335
|
||||||
|
msgid "Prefetch Min Hits"
|
||||||
|
msgstr "预读最小命中次数"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:341
|
||||||
|
msgid "Prefetch Scan Interval"
|
||||||
|
msgstr "预读扫描周期"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:330
|
||||||
|
msgid "Prefetch when the remaining TTL is less than this value (in seconds)."
|
||||||
|
msgstr "当剩余 TTL 小于此值(秒)时触发预读"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:301
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:301
|
||||||
msgid "Prevent DNS Leaks"
|
msgid "Prevent DNS Leaks"
|
||||||
msgstr "防止 DNS 泄漏"
|
msgstr "防止 DNS 泄漏"
|
||||||
|
|
||||||
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:324
|
||||||
|
msgid ""
|
||||||
|
"Proactively refresh hot cache entries in the background before they expire."
|
||||||
|
msgstr "在缓存到期前,后台主动预读并刷新高频访问的 DNS 记录"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:227
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:227
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:244
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:244
|
||||||
msgid "Quad9 Public DNS (149.112.112.112)"
|
msgid "Quad9 Public DNS (149.112.112.112)"
|
||||||
@@ -663,7 +699,7 @@ msgstr "自定义规则列表"
|
|||||||
msgid "Rules"
|
msgid "Rules"
|
||||||
msgstr "规则列表"
|
msgstr "规则列表"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:324
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:348
|
||||||
msgid "Save the cache locally and reload the cache dump on the next startup"
|
msgid "Save the cache locally and reload the cache dump on the next startup"
|
||||||
msgstr "保存缓存到本地文件,以供下次启动时重新载入使用"
|
msgstr "保存缓存到本地文件,以供下次启动时重新载入使用"
|
||||||
|
|
||||||
@@ -679,7 +715,7 @@ msgstr "流媒体"
|
|||||||
msgid "Streaming Media DNS server"
|
msgid "Streaming Media DNS server"
|
||||||
msgstr "流媒体 DNS 服务器"
|
msgstr "流媒体 DNS 服务器"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:359
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:383
|
||||||
msgid "Support for local files, such as: file:///var/mosdns/example.txt"
|
msgid "Support for local files, such as: file:///var/mosdns/example.txt"
|
||||||
msgstr "支持本地文件,例如:file:///var/mosdns/example.txt"
|
msgstr "支持本地文件,例如:file:///var/mosdns/example.txt"
|
||||||
|
|
||||||
@@ -714,7 +750,7 @@ msgstr ""
|
|||||||
"此功能通常在使用自建 DNS 服务器作为 远程 / 流媒体 DNS 上游时使用(需要上游服"
|
"此功能通常在使用自建 DNS 服务器作为 远程 / 流媒体 DNS 上游时使用(需要上游服"
|
||||||
"务器的支持)"
|
"务器的支持)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:427
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:451
|
||||||
msgid ""
|
msgid ""
|
||||||
"This is the content of the file '/etc/mosdns/config_custom.yaml' from which "
|
"This is the content of the file '/etc/mosdns/config_custom.yaml' from which "
|
||||||
"your MosDNS configuration will be generated. Only accepts configuration "
|
"your MosDNS configuration will be generated. Only accepts configuration "
|
||||||
@@ -731,7 +767,7 @@ msgstr "火山引擎公共 DNS(180.184.1.1)"
|
|||||||
msgid "TrafficRoute Public DNS (180.184.2.2)"
|
msgid "TrafficRoute Public DNS (180.184.2.2)"
|
||||||
msgstr "火山引擎公共 DNS(180.184.2.2)"
|
msgstr "火山引擎公共 DNS(180.184.2.2)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:442
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:466
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:43
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:43
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:48
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:48
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:67
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/rules.js:67
|
||||||
@@ -797,7 +833,7 @@ msgstr ""
|
|||||||
"启用 “自定义流媒体 DNS” 时,加入的域名始终使用 “流媒体 DNS 服务器” 进行解析"
|
"启用 “自定义流媒体 DNS” 时,加入的域名始终使用 “流媒体 DNS 服务器” 进行解析"
|
||||||
"(每个域名一行,支持域名匹配规则)"
|
"(每个域名一行,支持域名匹配规则)"
|
||||||
|
|
||||||
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:357
|
#: luci-app-mosdns/htdocs/luci-static/resources/view/mosdns/basic.js:381
|
||||||
msgid ""
|
msgid ""
|
||||||
"When using custom rule sources, please use rule types supported by MosDNS "
|
"When using custom rule sources, please use rule types supported by MosDNS "
|
||||||
"(domain list or AdGuardHome rules)."
|
"(domain list or AdGuardHome rules)."
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ get_config() {
|
|||||||
config_get lazy_cache_ttl $1 lazy_cache_ttl 86400
|
config_get lazy_cache_ttl $1 lazy_cache_ttl 86400
|
||||||
config_get dump_file $1 dump_file 0
|
config_get dump_file $1 dump_file 0
|
||||||
config_get dump_interval $1 dump_interval 3600
|
config_get dump_interval $1 dump_interval 3600
|
||||||
|
config_get prefetch $1 prefetch 0
|
||||||
|
config_get prefetch_before_expire $1 prefetch_before_expire 10
|
||||||
|
config_get prefetch_min_hits $1 prefetch_min_hits 3
|
||||||
|
config_get prefetch_scan_interval $1 prefetch_scan_interval 5
|
||||||
config_get enable_pipeline $1 enable_pipeline 0
|
config_get enable_pipeline $1 enable_pipeline 0
|
||||||
config_get geo_auto_update $1 geo_auto_update 0
|
config_get geo_auto_update $1 geo_auto_update 0
|
||||||
config_get geo_update_day_time $1 geo_update_day_time 2
|
config_get geo_update_day_time $1 geo_update_day_time 2
|
||||||
@@ -232,6 +236,12 @@ generate_config() {
|
|||||||
json_add_string "dump_file" "/etc/mosdns/cache.dump"
|
json_add_string "dump_file" "/etc/mosdns/cache.dump"
|
||||||
json_add_int "dump_interval" "$dump_interval"
|
json_add_int "dump_interval" "$dump_interval"
|
||||||
}
|
}
|
||||||
|
[ "$prefetch" -eq 1 ] && {
|
||||||
|
json_add_boolean "prefetch" 1
|
||||||
|
json_add_int "prefetch_before_expire" "$prefetch_before_expire"
|
||||||
|
json_add_int "prefetch_min_hits" "$prefetch_min_hits"
|
||||||
|
json_add_int "prefetch_scan_interval" "$prefetch_scan_interval"
|
||||||
|
}
|
||||||
json_close_object
|
json_close_object
|
||||||
json_close_object
|
json_close_object
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -5,12 +5,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=v2rayA
|
PKG_NAME:=v2rayA
|
||||||
PKG_VERSION:=2.4.12
|
PKG_VERSION:=2.4.14
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
|
PKG_SOURCE_URL:=https://codeload.github.com/v2rayA/v2rayA/tar.gz/v$(PKG_VERSION)?
|
||||||
PKG_HASH:=5a33a3209ff71838ca16e6bf6a82bdd4377fea3372545693db23fc87f9fa54f3
|
PKG_HASH:=da929d4dd93f7b5d94f59c78df0ac2bc7637e05dcebc849e13a9af9b5a199e1f
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/service
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/service
|
||||||
|
|
||||||
PKG_LICENSE:=AGPL-3.0-only
|
PKG_LICENSE:=AGPL-3.0-only
|
||||||
@@ -60,7 +60,7 @@ define Download/v2raya-web
|
|||||||
URL:=https://github.com/v2rayA/v2rayA/releases/download/v$(PKG_VERSION)/
|
URL:=https://github.com/v2rayA/v2rayA/releases/download/v$(PKG_VERSION)/
|
||||||
URL_FILE:=web.tar.gz
|
URL_FILE:=web.tar.gz
|
||||||
FILE:=$(WEB_FILE)
|
FILE:=$(WEB_FILE)
|
||||||
HASH:=e3e9a6b57458431cf5e016793256eff0a031c54f03726ae3e5f46f482f2b7674
|
HASH:=ce4c481d8d13995f98e593c66ee92d9ea1978df74dfb180b82d201c3cde9f474
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
|
|||||||
Reference in New Issue
Block a user