diff options
| author | Sergey Ponomarev <stokito@gmail.com> | 2023-12-28 19:39:51 +0200 |
|---|---|---|
| committer | Paul Donald <newtwen@gmail.com> | 2023-12-28 18:52:50 +0000 |
| commit | 1ec6f1014a2224c6e4d9a16bfe342e008c12d3d2 (patch) | |
| tree | cf01bb17a65a77d7f76c5ac8201e0bbdfca93b5d | |
| parent | 719d404ea94ff5f729ca56b6580c8fe253b433e4 (diff) | |
luci-app-sshtunnel: servers: ProxyCommand option
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 255aef1748309d065795f551b1994f2cd807b668)
| -rw-r--r-- | applications/luci-app-sshtunnel/Makefile | 2 | ||||
| -rw-r--r-- | applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/applications/luci-app-sshtunnel/Makefile b/applications/luci-app-sshtunnel/Makefile index 4298b6107f..f686ff103f 100644 --- a/applications/luci-app-sshtunnel/Makefile +++ b/applications/luci-app-sshtunnel/Makefile @@ -7,7 +7,7 @@ LUCI_TITLE:=LuCI support for SSH Tunnels (sshtunnel package) PKG_MAINTAINER:=Sergey Ponomarev <stokito@gmail.com> LUCI_DEPENDS:=+luci-base +sshtunnel -PKG_VERSION:=1.0.0 +PKG_VERSION:=1.1.0 PKG_RELEASE:=1 include ../../luci.mk diff --git a/applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js b/applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js index 88c3692728..7a45ddc32b 100644 --- a/applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js +++ b/applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js @@ -127,6 +127,14 @@ return view.extend({ o.default = 'accept-new'; o.modalonly = true; + o = s.taboption('advanced', form.Value, 'ProxyCommand', _('Proxy tunnel command'), + _('The command to use to connect to the server.') + '<br />' + + _('For example, the following command would connect via an HTTP proxy:') + '<br />' + + '<code>ncat --proxy-type http --proxy-auth alice:secret --proxy 192.168.1.2:8080 %h %p</code>' + + _manSshConfig('ProxyCommand') + ); + o.modalonly = true; + return m.render(); }, }); |
