Skip to content

Commit

Permalink
fix(node): udp_over_stream is conflict with udp_relay_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
douglarek committed Sep 5, 2023
1 parent 01ed8c9 commit 8648b48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/luci-static/resources/view/homeproxy/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -794,16 +794,17 @@ return view.extend({

so = ss.option(form.ListValue, 'tuic_udp_relay_mode', _('UDP relay mode'),
_('UDP packet relay mode.'));
so.value('', _('Default'));
so.value('native', _('Native'));
so.value('quic', _('QUIC'));
so.default = 'native';
so.default = '';
so.depends('type', 'tuic');
so.modalonly = true;

so = ss.option(form.Flag, 'tuic_udp_over_stream', _('UDP over stream'),
_('This is the TUIC port of the UDP over TCP protocol, designed to provide a QUIC stream based UDP relay mode that TUIC does not provide.'));
so.default = so.disabled;
so.depends({'type': 'tuic','tuic_udp_relay_mode': 'native'});
so.depends({'type': 'tuic','tuic_udp_relay_mode': ''});
so.modalonly = true;

so = ss.option(form.Flag, 'tuic_enable_zero_rtt', _('Enable 0-RTT handshake'),
Expand Down

0 comments on commit 8648b48

Please sign in to comment.