summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-frpc/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorLiangbin Lian <jjm2473@gmail.com>2022-08-16 13:57:43 +0800
committerLiangbin Lian <jjm2473@gmail.com>2022-08-17 21:36:33 +0800
commita185562836408ff38dcd0a48f076831424903ba1 (patch)
tree7464b1b74ae7da4a1273c235d47bc296acff3160 /applications/luci-app-frpc/htdocs/luci-static/resources
parent1ab4ce1a5e12afbecf1ed74c49ee91c8a049ca0b (diff)
luci-app-frpc: show remote port
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
Diffstat (limited to 'applications/luci-app-frpc/htdocs/luci-static/resources')
-rw-r--r--applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
index 3eb4b3dbc5..84eb9f8655 100644
--- a/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
+++ b/applications/luci-app-frpc/htdocs/luci-static/resources/view/frpc.js
@@ -212,6 +212,14 @@ return view.extend({
s.option(form.Value, 'type', _('Proxy type')).modalonly = false;
s.option(form.Value, 'local_ip', _('Local IP')).modalonly = false;
s.option(form.Value, 'local_port', _('Local port')).modalonly = false;
+ o = s.option(form.Value, 'remote_port', _('Remote port'));
+ o.modalonly = false;
+ o.depends('type', 'tcp');
+ o.depends('type', 'udp');
+ o.cfgvalue = function() {
+ var v = this.super('cfgvalue', arguments);
+ return v&&v!='0'?v:'#';
+ };
defTabOpts(s, 'general', baseProxyConf, {modalonly: true});