Revert "luci-proto-ppp: pppoe.so has no MTU option; remove it"

This reverts commit 995d3a1801.

The `mtu` option controls the pppd mru and mtu arguments, it is not
specific to pppoe.so.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
pull/7124/head
Jo-Philipp Wich 2024-05-13 12:34:15 +02:00
parent b4d34010fe
commit b57c6ff29e
1 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ return network.registerProtocol('pppoe', {
o.placeholder = '0';
o.datatype = 'uinteger';
/* pppoe.so has no MTU option - only underlying device MTU is possible */
o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU'));
o.placeholder = dev ? (dev.getMTU() || '1500') : '1500';
o.datatype = 'max(9200)';
}
});