diff options
author | Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com> | 2021-04-13 15:43:51 +0300 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2021-04-13 17:10:12 +0300 |
commit | 57839f183b9e019c792c7e185174e4be73890c7b (patch) | |
tree | d16769f9d62274ed28dab0a9a621f44f7fa54d15 /applications/luci-app-fwknopd | |
parent | 1ae68777b854800d50a951a10fc96f6a6be35e8c (diff) |
luci-app-fwknopd: add support for ENABLE_CMD_EXEC
Add support for execution commands on the fwknopd server.
Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com>
Diffstat (limited to 'applications/luci-app-fwknopd')
-rw-r--r-- | applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js b/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js index d7a76e4404..df368749a7 100644 --- a/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js +++ b/applications/luci-app-fwknopd/htdocs/luci-static/resources/view/fwknopd.js @@ -591,6 +591,9 @@ return view.extend({ This makes it impossible to use the -s command line argument on the fwknop client command line, so either -R \ has to be used to automatically resolve the external address (if the client behind a NAT) or the client must \ know the external IP and set it via the -a argument.')); + s:option(YNValue, 'ENABLE_CMD_EXEC', 'ENABLE_CMD_EXEC', _('This instructs fwknopd to accept complete commands that are contained within an authorization packet. \ + Any such command will be executed on the fwknopd server as the user specified by the “CMD_EXEC_USER” or as the user \ + that started fwknopd if that is not set.')); s = m.section(form.TypedSection, 'config', _('fwknopd.conf config options')); s.anonymous=true; |