update 2024-02-29 00:21:42

This commit is contained in:
github-actions[bot] 2024-02-29 00:21:42 +08:00
parent 0792836270
commit bd3931b375
8 changed files with 47 additions and 60 deletions

View File

@ -5,12 +5,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dnsproxy
PKG_VERSION:=0.65.0
PKG_VERSION:=0.65.2
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=12720de6f1540aee7d3c08b6b32e602d05126a8c55f251bbb94d379306608241
PKG_HASH:=7c863404075daf76f1c6b291cc473670cbc45651af8f409e488c10a47fb73117
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_LICENSE:=Apache-2.0

View File

@ -4,9 +4,9 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-natter2
PKG_VERSION:=1.0
PKG_RELEASE:=2
PKG_RELEASE:=3
LUCI_TITLE:=LuCI Support for Natter v2.0.0-rc1
LUCI_TITLE:=LuCI Support for Natter v2.0.0-rc2
LUCI_PKGARCH:=all
LUCI_DEPENDS:=+natter2

View File

@ -22,8 +22,6 @@ if check_file("/tmp/natter2_nat_type") then
nat_check = s:option (Button, "nat_check", translate("Check NAT Status"), translate("") .. "<br><br>" .. natter_nat_type_tcp .. "<br><br>" .. natter_nat_type_udp)
else
nat_check = s:option (Button, "nat_check", translate("Check NAT Status"), translate("Tips")
.. [[<br />]] .. translate("Recommended to accept high UDP ports in system firewall")
.. [[<br />]] .. translate("Turn off transparent proxies to ensure detection accuracy")
.. [[<br />]] .. translate("After clicking Exec button, please wait for the luci to refresh"))
end

View File

@ -1,11 +1,11 @@
m = Map("natter2",translate("Instances Settings"),
m = Map("natter2", translate("Instances Settings"),
translate("")
.. [[<a href="https://github.com/MikeWang000000/Natter/blob/master/docs/usage.md">]]
.. translate("Instructions")
.. [[</a>]])
m.redirect=luci.dispatcher.build_url("admin","network","natter2")
m.redirect = luci.dispatcher.build_url("admin", "network", "natter2")
s = m:section(NamedSection,arg[1],"instances","")
s = m:section(NamedSection, arg[1], "instances", "")
s.addremove = false
s.dynamic = false
@ -13,18 +13,18 @@ local function check_binary(e)
return luci.sys.exec('which "%s" 2> /dev/null' % e) ~= "" and true or false
end
enable_instance = s:option(Flag,"enable_instance",translate("Enable"))
enable_instance = s:option(Flag, "enable_instance", translate("Enable"))
local e = luci.sys.exec("cut -d '-' -f1 /proc/sys/kernel/random/uuid 2> /dev/null")
id = s:option(Value,"id",translate("ID"))
id = s:option(Value, "id", translate("ID"))
id.default = e
remark = s:option(Value,"remark",translate("Remark"))
remark = s:option(Value, "remark", translate("Remark"))
remark.rmempty=false
protocol = s:option(ListValue,"protocol",translate("Protocol"))
protocol:value('tcp',translate("TCP"))
protocol:value('udp',translate("UDP"))
protocol = s:option(ListValue, "protocol", translate("Protocol"))
protocol:value('tcp', translate("TCP"))
protocol:value('udp', translate("UDP"))
protocol.default = 'tcp'
enable_stun_server = s:option(Flag, "enable_stun_server", translate("Enable Stun Server"), translate("Using customized STUN server"))
@ -37,11 +37,11 @@ keepalive_server = s:option(Value, "keepalive_server", translate("Keepalive Serv
keepalive_server.rmempty = true
keepalive_server:depends({enable_keepalive_server = "1"})
interval = s:option(Value,"interval",translate("Interval (Seconds)"),translate("The number of seconds between keepalive"))
interval = s:option(Value, "interval", translate("Interval (Seconds)"), translate("The number of seconds between keepalive"))
interval.default = 15
interval.datatype = "uinteger"
enable_bonding = s:option(Flag,"enable_bonding",translate("Enable Bonding Options"))
enable_bonding = s:option(Flag, "enable_bonding", translate("Enable Bonding Options"), translate("Usually there is no need to enable binding"))
enable_bonding.rmempty = true
bonding_interface = s:option(Value, "bonding_interface", translate("Bonding Interface"))
bonding_interface.rmempty = true
@ -53,25 +53,25 @@ bonding_port.rmempty = true
bonding_port.default = '0'
bonding_port:depends({enable_bonding = "1"})
enable_forwarding = s:option(Flag,"enable_forwarding",translate("Enable Forwarding Options"),translate("Forwarding to internal devices"))
enable_forwarding = s:option(Flag, "enable_forwarding", translate("Enable Forwarding Options"), translate("Forwarding to internal devices"))
forwarding_method = s:option(ListValue,"forwarding_method",translate("Forwarding Method"),
forwarding_method = s:option(ListValue, "forwarding_method", translate("Forwarding Method"),
translate("")
.. [[<a href="https://github.com/MikeWang000000/Natter/blob/master/docs/forward.md">]]
.. translate("Instructions for forwarding method")
.. [[</a>]])
forwarding_method:value('socket',translate("socket (Integrated)"))
forwarding_method:value('socket', translate("socket (Not Recommended)"))
if check_binary("iptables") then
forwarding_method:value('iptables',translate("iptables (Kernel)"))
forwarding_method:value('iptables', translate("iptables (Recommended)"))
end
if check_binary("nftables") then
forwarding_method:value('nftables',translate("nftables (Kernel)"))
forwarding_method:value('nftables', translate("nftables (Recommended)"))
end
if check_binary("socat") then
forwarding_method:value('socat',translate("socat"))
forwarding_method:value('socat', translate("socat"))
end
if check_binary("gost") then
forwarding_method:value('gost',translate("gost"))
forwarding_method:value('gost', translate("gost"))
end
forwarding_method.default = 'socket'
forwarding_method:depends({enable_forwarding = "1"})
@ -88,24 +88,24 @@ target_port = s:option(Value, "target_port", translate("Target Port"))
target_port.datatype = "port"
target_port:depends({enable_forwarding = "1"})
enable_forwarding_retry = s:option(Flag,"enable_forwarding_retry",translate("Enable Forwarding Retry"),translate("Retry until the target port is open"))
enable_forwarding_retry = s:option(Flag, "enable_forwarding_retry", translate("Enable Forwarding Retry"), translate("Retry until the target port is open"))
enable_forwarding_retry:depends({enable_forwarding = "1"})
enable_forwarding_retry.default = 1
enable_forwarding_retry.rmempty = false
enable_quit = s:option(Flag,"enable_quit",translate("Enable Quit"),translate("Exit immediately when the mapping address changes"))
enable_quit = s:option(Flag, "enable_quit", translate("Enable Quit"), translate("Exit immediately when the mapping address changes"))
enable_quit.default = "0"
delay = s:option(Value,"delay",translate("Start delay (Seconds)"),translate("Time to wait before starting this instance"))
delay = s:option(Value,"delay", translate("Start delay (Seconds)"), translate("Time to wait before starting this instance"))
delay.default = 0
delay.datatype = "uinteger"
delay.rmempty = false
log_level = s:option(ListValue,"log_level",translate("Log Level"))
log_level:value('normal',translate("Normal"))
log_level:value('verbose',translate("Verbose"))
log_level = s:option(ListValue, "log_level", translate("Log Level"))
log_level:value('normal', translate("Normal"))
log_level:value('verbose', translate("Verbose"))
enable_notify = s:option(Flag,"enable_notify",translate("Enable Notify Script"))
enable_notify = s:option(Flag,"enable_notify", translate("Enable Notify Script"))
enable_notify.rmempty = false
notify_path = s:option(Value, "notify_path", translate("Notify Script Path"),
translate("")

View File

@ -1,5 +1,6 @@
log=SimpleForm("natter2")
log.reset=false
log.submit=false
log = SimpleForm("natter2")
log.reset = false
log.submit = false
log:append(Template("natter2/natter_log"))
return log

View File

@ -85,14 +85,14 @@ msgstr "转发方式"
msgid "Instructions for forwarding method"
msgstr "转发方式说明"
msgid "socket (Integrated)"
msgstr "Socket内置"
msgid "socket (Not Recommended)"
msgstr "Socket内置, 不推荐"
msgid "iptables (Kernel)"
msgstr "iptables内核级"
msgid "iptables (Recommended)"
msgstr "iptables防火墙, 推荐"
msgid "nftables (Kernel)"
msgstr "nftables内核级 新版"
msgid "nftables (Recommended)"
msgstr "nftables防火墙, 推荐"
msgid "Target Address"
msgstr "目标地址"
@ -145,11 +145,5 @@ msgstr "使用自定义的保活服务器"
msgid "Tips"
msgstr "提示"
msgid "Recommended to accept high UDP ports in system firewall"
msgstr "建议在防火墙中放行高位 UDP 端口"
msgid "Turn off transparent proxies to ensure detection accuracy"
msgstr "关闭透明代理以确保检测准确性"
msgid "After clicking Exec button, please wait for the luci to refresh"
msgstr "点击执行后,请耐心等待页面自动刷新"

View File

@ -85,14 +85,14 @@ msgstr "转发方式"
msgid "Instructions for forwarding method"
msgstr "转发方式说明"
msgid "socket (Integrated)"
msgstr "Socket内置"
msgid "socket (Not Recommended)"
msgstr "Socket内置, 不推荐"
msgid "iptables (Kernel)"
msgstr "iptables内核级"
msgid "iptables (Recommended)"
msgstr "iptables防火墙, 推荐"
msgid "nftables (Kernel)"
msgstr "nftables内核级 新版"
msgid "nftables (Recommended)"
msgstr "nftables防火墙, 推荐"
msgid "Target Address"
msgstr "目标地址"
@ -145,11 +145,5 @@ msgstr "使用自定义的保活服务器"
msgid "Tips"
msgstr "提示"
msgid "Recommended to accept high UDP ports in system firewall"
msgstr "建议在防火墙中放行高位 UDP 端口"
msgid "Turn off transparent proxies to ensure detection accuracy"
msgstr "关闭透明代理以确保检测准确性"
msgid "After clicking Exec button, please wait for the luci to refresh"
msgstr "点击执行后,请耐心等待页面自动刷新"

View File

@ -3,9 +3,9 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=natter2
PKG_VERSION=2.0.0-rc1
PKG_VERSION=2.0.0-rc2
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_VERSION:=ba7385de8edf869486f01b724780497939eccd24
PKG_SOURCE_VERSION:=6e1c66db06e1bb746e55288da1b9fb012bf701b5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz