mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix https://github.com/Ysurac/openmptcprouter/issues/3646 Shadowsocks-Rust ss_tunnel
This commit is contained in:
parent
2e1d9b7207
commit
4df5fb7360
5 changed files with 23 additions and 7 deletions
|
@ -183,7 +183,8 @@ return L.Class.extend({
|
|||
} else if (stype === 'ss_local' || stype === 'ss_redir' || stype === 'ss_tunnel') {
|
||||
this.cfgvalue_overview_(sdata, lines, names_options_client);
|
||||
if (stype === 'ss_tunnel') {
|
||||
this.cfgvalue_overview_(sdata, lines, ['tunnel_address']);
|
||||
this.cfgvalue_overview_(sdata, lines, ['forward_address']);
|
||||
this.cfgvalue_overview_(sdata, lines, ['forward_port']);
|
||||
}
|
||||
this.cfgvalue_overview_(sdata, lines, names_options_common);
|
||||
} else {
|
||||
|
|
|
@ -92,10 +92,13 @@ return L.view.extend({
|
|||
} else {
|
||||
ss.options_client(s, 'general', res[1]);
|
||||
if (stype === 'ss_tunnel') {
|
||||
o = s.taboption('general', form.Value, 'tunnel_address',
|
||||
o = s.taboption('general', form.Value, 'forward_address',
|
||||
_('Tunnel address'),
|
||||
_('The address ss-tunnel will forward traffic to'));
|
||||
o.datatype = 'hostport';
|
||||
o.datatype = 'host';
|
||||
o = s.taboption('general', form.Value, 'forward_port',
|
||||
_('Tunnel port'),
|
||||
_('The port ss-tunnel will forward traffic to'));
|
||||
}
|
||||
}
|
||||
}, this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue