Revision 447efafd
Added by Sander van Leeuwen about 10 years ago
usr/local/www/vpn_ipsec_settings.php | ||
---|---|---|
293 | 293 |
'It is recommended to keep this option to no, unless you know exactly what the implications are and require compatibility to such devices (for example, some SonicWall boxes).' |
294 | 294 |
); |
295 | 295 |
|
296 |
// TODO: should toggle the maxmss input |
|
297 | 296 |
$section->addInput(new Form_Checkbox( |
298 | 297 |
'maxmss_enable', |
299 | 298 |
'Enable Maximum MSS', |
300 | 299 |
'Enable MSS clamping on VPN traffic', |
301 | 300 |
$pconfig['maxmss_enable'] |
302 |
)); |
|
301 |
))->toggles('.toggle-maxmss', 'collapse');
|
|
303 | 302 |
|
304 |
$section->addInput(new Form_Input( |
|
303 |
$group = new Form_Group('Maximum MSS'); |
|
304 |
$group->addClass('toggle-maxmss collapse'); |
|
305 |
|
|
306 |
if (!empty($pconfig['maxmss_enable'])) |
|
307 |
$group->addClass('in'); |
|
308 |
|
|
309 |
$group->add(new Form_Input( |
|
305 | 310 |
'maxmss', |
306 | 311 |
'Maximum MSS', |
307 | 312 |
'text', |
... | ... | |
311 | 316 |
'This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. ' |
312 | 317 |
); |
313 | 318 |
|
319 |
$section->add($group); |
|
320 |
|
|
314 | 321 |
$section->addInput(new Form_Checkbox( |
315 | 322 |
'unityplugin', |
316 | 323 |
'Disable Cisco Extensions', |
Also available in: Unified diff
Fix todo, let checkbox toggle maxmss input
Refs. #22