protocols: l2tp: add option hostname
authorMartin Schiller <[email protected]>
Tue, 7 Oct 2025 06:05:50 +0000 (08:05 +0200)
committerPaul Donald <[email protected]>
Mon, 27 Oct 2025 16:54:16 +0000 (17:54 +0100)
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 <[email protected]>
protocols/luci-proto-ppp/htdocs/luci-static/resources/protocol/l2tp.js

index e1af7ca1f553838e297aed0e100c93cd43a18232..ab72d4ad727192874d8d372ef5bf4eaa05d5dfb8 100644 (file)
@@ -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'));
        }
 });