From 9b01a6e862d119b999ce57173f8de55c15cc8818 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 25 Jan 2009 15:06:17 +0000 Subject: [PATCH] applications/luci-upnp: add option to enable/disable secure mode --- applications/luci-upnp/luasrc/i18n/upnp.de.lua | 1 + applications/luci-upnp/luasrc/i18n/upnp.de.xml | 1 + applications/luci-upnp/luasrc/i18n/upnp.en.lua | 1 + applications/luci-upnp/luasrc/i18n/upnp.en.xml | 1 + applications/luci-upnp/luasrc/i18n/upnp.pt-br.lua | 1 + applications/luci-upnp/luasrc/i18n/upnp.pt-br.xml | 1 + applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua | 3 ++- 7 files changed, 8 insertions(+), 1 deletion(-) diff --git a/applications/luci-upnp/luasrc/i18n/upnp.de.lua b/applications/luci-upnp/luasrc/i18n/upnp.de.lua index b2757b0d7..777ae876e 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.de.lua +++ b/applications/luci-upnp/luasrc/i18n/upnp.de.lua @@ -1,6 +1,7 @@ upnpd = 'Universal Plug & Play' upnpd_desc = 'UPNP ermöglicht die automatische Konfiguration des Routers durch Clients im lokalen Netzwerk.' upnpd_config_desc = 'UPNP sollte nur wenn unbedingt nötig aktiviert werden, da es ein Sicherheitsrisiko für das Netzwerk darstellen kann.' +upnpd_config_securemode = 'Sicheren Modus aktivieren' upnpd_config_logoutput = 'Ausgabe protokollieren' upnpd_config_download = 'Downlink' upnpd_config_upload = 'Uplink' diff --git a/applications/luci-upnp/luasrc/i18n/upnp.de.xml b/applications/luci-upnp/luasrc/i18n/upnp.de.xml index b6aa78b7c..2a21b7b79 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.de.xml +++ b/applications/luci-upnp/luasrc/i18n/upnp.de.xml @@ -5,6 +5,7 @@ Universal Plug & Play UPNP ermöglicht die automatische Konfiguration des Routers durch Clients im lokalen Netzwerk. UPNP sollte nur wenn unbedingt nötig aktiviert werden, da es ein Sicherheitsrisiko für das Netzwerk darstellen kann. +Sicheren Modus aktivieren Ausgabe protokollieren Downlink Uplink diff --git a/applications/luci-upnp/luasrc/i18n/upnp.en.lua b/applications/luci-upnp/luasrc/i18n/upnp.en.lua index fc0293987..8e6c825e6 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.en.lua +++ b/applications/luci-upnp/luasrc/i18n/upnp.en.lua @@ -1,6 +1,7 @@ upnpd = 'Universal Plug & Play' upnpd_desc = 'UPNP allows clients in the local network to automatically configure the router.' upnpd_config_desc = 'UPNP should only be enabled if absolutely necessary as it can result in high security risks for your network.' +upnpd_config_securemode = 'Enable secure mode' upnpd_config_logoutput = 'Log output' upnpd_config_download = 'Downlink' upnpd_config_upload = 'Uplink' diff --git a/applications/luci-upnp/luasrc/i18n/upnp.en.xml b/applications/luci-upnp/luasrc/i18n/upnp.en.xml index 1d2b1e3f0..60d622511 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.en.xml +++ b/applications/luci-upnp/luasrc/i18n/upnp.en.xml @@ -5,6 +5,7 @@ Universal Plug & Play UPNP allows clients in the local network to automatically configure the router. UPNP should only be enabled if absolutely necessary as it can result in high security risks for your network. +Enable secure mode Log output Downlink Uplink diff --git a/applications/luci-upnp/luasrc/i18n/upnp.pt-br.lua b/applications/luci-upnp/luasrc/i18n/upnp.pt-br.lua index 9170a311d..cf2c3dbd7 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.pt-br.lua +++ b/applications/luci-upnp/luasrc/i18n/upnp.pt-br.lua @@ -1,6 +1,7 @@ upnpd = 'Plug & Play Universal' upnpd_desc = 'UPNP permite os clientes da rede local automaticamente configurar o roteador.' upnpd_config_desc = 'O UPNP deve ser ativado apenas se for absolutamente necessário, pois ele pode resultar em elevados riscos de segurança para sua rede.' +upnpd_config_securemode = 'Enable secure mode' upnpd_config_logoutput = 'Log de saída' upnpd_config_download = 'Link para download' upnpd_config_upload = 'Link para Upload' diff --git a/applications/luci-upnp/luasrc/i18n/upnp.pt-br.xml b/applications/luci-upnp/luasrc/i18n/upnp.pt-br.xml index 9b5788364..c239d907b 100644 --- a/applications/luci-upnp/luasrc/i18n/upnp.pt-br.xml +++ b/applications/luci-upnp/luasrc/i18n/upnp.pt-br.xml @@ -5,6 +5,7 @@ Plug & Play Universal UPNP permite os clientes da rede local automaticamente configurar o roteador. O UPNP deve ser ativado apenas se for absolutamente necessário, pois ele pode resultar em elevados riscos de segurança para sua rede. +Enable secure mode Log de saída Link para download Link para Upload diff --git a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua index 79a38f7c5..0d07a564a 100644 --- a/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua +++ b/applications/luci-upnp/luasrc/model/cbi/upnp/upnp.lua @@ -25,8 +25,9 @@ function e.cfgvalue(self, section) return (os.execute("/etc/init.d/miniupnpd enabled") == 0) and "1" or "0" end +s:option(Flag, "secure_mode").rmempty = true s:option(Flag, "log_output").rmempty = true s:option(Value, "download").rmempty = true s:option(Value, "upload").rmempty = true -return m \ No newline at end of file +return m -- 2.25.1