From 87375a5cf045ac7891eca474919e9e185c734cc3 Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Tue, 7 Oct 2025 08:05:50 +0200 Subject: [PATCH] protocols: l2tp: add option hostname This adds the possibility to set our own L2TP hostname in the advanced tab. It's needed if the peer only allows certain hostnames to connect. Signed-off-by: Martin Schiller --- .../htdocs/luci-static/resources/protocol/l2tp.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js index e1af7ca1f5..ab72d4ad72 100644 --- a/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js +++ b/protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js @@ -57,5 +57,7 @@ return network.registerProtocol('l2tp', { o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU')); o.placeholder = dev ? (dev.getMTU() || '1500') : '1500'; o.datatype = 'max(9200)'; + + o = s.taboption('advanced', form.Value, 'hostname', _('L2TP Hostname')); } }); -- 2.30.2