luci-app-frpc: show remote port
Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
This commit is contained in:
parent
1ab4ce1a5e
commit
a185562836
1 changed files with 8 additions and 0 deletions
|
@ -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});
|
||||
|
||||
|
|
Loading…
Reference in a new issue