diff --git a/src/www/vpn_ipsec_phase2.php b/src/www/vpn_ipsec_phase2.php index 6fee60a78..2ff0b3d40 100644 --- a/src/www/vpn_ipsec_phase2.php +++ b/src/www/vpn_ipsec_phase2.php @@ -47,7 +47,7 @@ function pconfig_to_ealgos($pconfig) if (in_array($algo_name, $pconfig['ealgos'])) { $ealg = array(); $ealg['name'] = $algo_name; - if (is_array($algo_data['keysel'])) { + if (isset($algo_data['keysel'])) { $ealg['keylen'] = $pconfig["keylen_".$algo_name]; } $ealgos[] = $ealg; @@ -252,7 +252,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { break; } /* Check if the localid_type is an interface, to confirm if it has a valid subnet. */ - if (is_array($config['interfaces'][$pconfig['localid_type']])) { + if (isset($config['interfaces'][$pconfig['localid_type']])) { // Don't let an empty subnet into racoon.conf, it can cause parse errors. Ticket #2201. $address = get_interface_ip($pconfig['localid_type']); $netbits = get_interface_subnet($pconfig['localid_type']); @@ -447,7 +447,11 @@ $( document ).ready(function() { change_mode(''); change_protocol(''); typesel_change_local(); + typesel_change_natlocal(); + typesel_change_remote(); @@ -742,7 +746,7 @@ if (isset($input_errors) && count($input_errors) > 0) {    - + " /> /