summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol
diff options
context:
space:
mode:
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)';
}
});