mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 19:14:34 +04:00
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:
committed by
Paul Donald
parent
bc900b5d1c
commit
87375a5cf0
@@ -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'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user