From: Andy Chiang Date: Sat, 25 Apr 2026 05:59:18 +0000 (+0700) Subject: luci-mod-network: mptcp option uses '' instead of "off" X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=317ff9dd7624c21d45b2a007cfcfec70c129bfd1;p=openwrt-luci.git luci-mod-network: mptcp option uses '' instead of "off" In the mptcp options, "off" is the default option, which has the same effect as not defining it. Using '' will prevent unnecessary parameters from being written to the flash. Link https://openwrt.org/docs/guide-user/network/mptcp Signed-off-by: Andy Chiang --- diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js index 5fad6f343f..67a849a9ee 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js @@ -1220,11 +1220,12 @@ return view.extend({ o = nettools.replaceOption(s, 'advanced', form.RichListValue, 'multipath', _('Multi-Path TCP'), _('Multi-Path TCP') + ' %s'.format('RFC8684').format('https://www.rfc-editor.org/rfc/rfc8684.html') + '
' + _('For packets originating from this device, e.g. VPN.') ); - o.value('off', _('Off'), _('Disables this interface for MPTCP')); + o.value('', _('Off'), _('Disables this interface for MPTCP')); o.value('on', _('On'), _('No special configuration')); o.value('master', _('Master'), _('Sets default route for all traffic')); o.value('backup', _('Backup'), _('Hot standby; use this interface; do not forward traffic until no other interface is available (faster)')); o.value('handover', _('Handover'), _('Cold standby; Establish a connection only when no other interface is available (slower)')); + o.optional = true; } o = nettools.replaceOption(s, 'advanced', form.Value, 'ip4table', _('Override IPv4 routing table'));