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 <ms@dev.tdt.de>
This commit is contained in:
Martin Schiller
2025-10-07 08:05:50 +02:00
committed by Paul Donald
parent bc900b5d1c
commit 87375a5cf0

View 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'));
}
});