summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2024-05-13 12:34:15 +0200
committerJo-Philipp Wich <jo@mein.io>2024-05-13 12:34:27 +0200
commitb57c6ff29eb625913b91e0f6ebb754a5454acb9f (patch)
treec32db52c74dad525de40bb83991580d4b0a925ec /protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol
parentb4d34010feac5516aff301a21d03b82264d2ec60 (diff)
Revert "luci-proto-ppp: pppoe.so has no MTU option; remove it"
This reverts commit 995d3a1801cf3b850e8c7c35937fbdd0526ff53e. 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>
Diffstat (limited to 'protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol')
-rw-r--r--protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js
index b025a3eeb2..057e17fe81 100644
--- a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js
+++ b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/pppoe.js
@@ -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)';
}
});