From 8648b481d68f21d05c048663bcec141a8adaab86 Mon Sep 17 00:00:00 2001 From: douglarek Date: Tue, 5 Sep 2023 23:04:00 +0800 Subject: [PATCH] fix(node): udp_over_stream is conflict with udp_relay_mode --- htdocs/luci-static/resources/view/homeproxy/node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/luci-static/resources/view/homeproxy/node.js b/htdocs/luci-static/resources/view/homeproxy/node.js index e7eb549f..cad05de2 100644 --- a/htdocs/luci-static/resources/view/homeproxy/node.js +++ b/htdocs/luci-static/resources/view/homeproxy/node.js @@ -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'),