diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-25 15:06:17 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-01-25 15:06:17 +0000 |
commit | 9b01a6e862d119b999ce57173f8de55c15cc8818 (patch) | |
tree | 9ae103a0798491f7904077b3edc88fd0c4c5c265 /applications/luci-upnp | |
parent | 55f6cb895b288424df57f0162a23ed3106908024 (diff) |
applications/luci-upnp: add option to enable/disable secure mode
Diffstat (limited to 'applications/luci-upnp')
7 files changed, 8 insertions, 1 deletions
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 @@ <i18n:msg xml:id="upnpd">Universal Plug & Play</i18n:msg> <i18n:msg xml:id="upnpd_desc">UPNP ermöglicht die automatische Konfiguration des Routers durch Clients im lokalen Netzwerk.</i18n:msg> <i18n:msg xml:id="upnpd_config_desc">UPNP sollte nur wenn unbedingt nötig aktiviert werden, da es ein Sicherheitsrisiko für das Netzwerk darstellen kann.</i18n:msg> +<i18n:msg xml:id="upnpd_config_securemode">Sicheren Modus aktivieren</i18n:msg> <i18n:msg xml:id="upnpd_config_logoutput">Ausgabe protokollieren</i18n:msg> <i18n:msg xml:id="upnpd_config_download">Downlink</i18n:msg> <i18n:msg xml:id="upnpd_config_upload">Uplink</i18n:msg> 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 @@ <i18n:msg xml:id="upnpd">Universal Plug & Play</i18n:msg> <i18n:msg xml:id="upnpd_desc">UPNP allows clients in the local network to automatically configure the router.</i18n:msg> <i18n:msg xml:id="upnpd_config_desc">UPNP should only be enabled if absolutely necessary as it can result in high security risks for your network.</i18n:msg> +<i18n:msg xml:id="upnpd_config_securemode">Enable secure mode</i18n:msg> <i18n:msg xml:id="upnpd_config_logoutput">Log output</i18n:msg> <i18n:msg xml:id="upnpd_config_download">Downlink</i18n:msg> <i18n:msg xml:id="upnpd_config_upload">Uplink</i18n:msg> 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 @@ <i18n:msg xml:id="upnpd">Plug & Play Universal</i18n:msg> <i18n:msg xml:id="upnpd_desc">UPNP permite os clientes da rede local automaticamente configurar o roteador.</i18n:msg> <i18n:msg xml:id="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.</i18n:msg> +<i18n:msg xml:id="upnpd_config_securemode">Enable secure mode</i18n:msg> <i18n:msg xml:id="upnpd_config_logoutput">Log de saída</i18n:msg> <i18n:msg xml:id="upnpd_config_download">Link para download</i18n:msg> <i18n:msg xml:id="upnpd_config_upload">Link para Upload</i18n:msg> 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 |