Compare commits

..

No commits in common. "ad0c96e423e7339a9ff3d2d893bfc25997a43546" and "d73212a1950dc1505bde55c62c5e33e03d2b84ac" have entirely different histories.

5 changed files with 3 additions and 125 deletions

View File

@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE:=GPL-2.0-or-later
PKG_MAINTAINER:=Zapret PKG_MAINTAINER:=Zapret
PKG_VERSION:=0.2 PKG_VERSION:=0.1.7
LUCI_TITLE:=Zapret TPWS Web UI LUCI_TITLE:=Zapret TPWS Web UI
LUCI_DESCRIPTION:=Provides Web UI for Zapret tpws transparent proxy LUCI_DESCRIPTION:=Provides Web UI for Zapret tpws transparent proxy

View File

@ -8,8 +8,8 @@ function opt.validate(self, value)
table.insert(words, word) table.insert(words, word)
end end
for _, word in ipairs(words) do for _, word in ipairs(words) do
if word:sub(1, 2) ~= "--" then if not word:sub(1, 2) == "--" then
return nil, translate("The field value \"TPWS Options\" has incorrect format") return nil
end end
end end
return value return value

View File

@ -1,44 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr "Block QUIC protocol to come outside"
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr "Configuration"
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr "Listen Port"
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr "Ports, forwarded to proxy"
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr "TPWS Configuration"
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr "TPWS Options"
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr "TPWS Proxy Settings"
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr "The field value \"TPWS Options\" has incorrect format"

View File

@ -1,44 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr "Заблокировать прохождение протокола QUIC"
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr "Конфигурация"
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr "Порт"
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr "Перенаправляемые порты"
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr "Конфигурация TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr "Опции TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr "Настройки прокси-сервера TPWS"
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr "Значение поля \"Опции TPWS\" не соответствует формату"

View File

@ -1,34 +0,0 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8"
#: luasrc/model/cbi/zapret-tpws.lua:17
msgid "Block QUIC protocol to come outside"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:2
msgid "Configuration"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:18
msgid "Listen Port"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:21
msgid "Ports, forwarded to proxy"
msgstr ""
#: luasrc/controller/zapret-tpws.lua:4
msgid "TPWS Configuration"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:3
msgid "TPWS Options"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:1
msgid "TPWS Proxy Settings"
msgstr ""
#: luasrc/model/cbi/zapret-tpws.lua:12
msgid "The field value \"TPWS Options\" has incorrect format"
msgstr ""