Skip to content

Commit 317ff9d

Browse files
AndyChiang888systemcrash
authored andcommitted
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 <AndyChiang_git@outlook.com>
1 parent fd9f50b commit 317ff9d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • modules/luci-mod-network/htdocs/luci-static/resources/view/network

modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,11 +1220,12 @@ return view.extend({
12201220
o = nettools.replaceOption(s, 'advanced', form.RichListValue, 'multipath', _('Multi-Path TCP'),
12211221
_('Multi-Path TCP') + ' %s'.format('<a href="%s" target="_blank">RFC8684</a>').format('https://www.rfc-editor.org/rfc/rfc8684.html') + '<br/>' +
12221222
_('For packets originating from this device, e.g. VPN.') );
1223-
o.value('off', _('Off'), _('Disables this interface for MPTCP'));
1223+
o.value('', _('Off'), _('Disables this interface for MPTCP'));
12241224
o.value('on', _('On'), _('No special configuration'));
12251225
o.value('master', _('Master'), _('Sets default route for all traffic'));
12261226
o.value('backup', _('Backup'), _('Hot standby; use this interface; do not forward traffic until no other interface is available (faster)'));
12271227
o.value('handover', _('Handover'), _('Cold standby; Establish a connection only when no other interface is available (slower)'));
1228+
o.optional = true;
12281229
}
12291230

12301231
o = nettools.replaceOption(s, 'advanced', form.Value, 'ip4table', _('Override IPv4 routing table'));

0 commit comments

Comments
 (0)