mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Don't allow transport mode to be selected for mobile clients. Fixes #2713
This commit is contained in:
parent
0100d57753
commit
0b73e6f246
@ -176,6 +176,8 @@ if ($_POST) {
|
||||
}
|
||||
/* Validate enabled phase2's are not duplicates */
|
||||
if (isset($pconfig['mobile'])){
|
||||
if (substr($pconfig['mode'], 0, 6) != "tunnel")
|
||||
$input_errors[] = gettext("Mobile IPsec only supports Tunnel mode.");
|
||||
/* User is adding phase 2 for mobile phase1 */
|
||||
foreach($a_phase2 as $key => $name){
|
||||
if (isset($name['mobile'])){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user