diff options
author | Ermal <eri@pfsense.org> | 2012-10-05 19:00:50 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-10-05 19:00:50 +0000 |
commit | 72dd4f07472340248265fa17e51d07d74653dca3 (patch) | |
tree | e9d6a259d4452f6b28df4baa4c1e1009c6237dc4 | |
parent | 9a5a078a7140d815418356473eff9d99c8908605 (diff) | |
download | pfsense-72dd4f07472340248265fa17e51d07d74653dca3.zip pfsense-72dd4f07472340248265fa17e51d07d74653dca3.tar.gz |
Check against _address since that is the field inputed _type is always there.
-rw-r--r-- | usr/local/www/vpn_ipsec_phase2.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_ipsec_phase2.php b/usr/local/www/vpn_ipsec_phase2.php index 1a01f27..08c157b 100644 --- a/usr/local/www/vpn_ipsec_phase2.php +++ b/usr/local/www/vpn_ipsec_phase2.php @@ -141,7 +141,7 @@ if ($_POST) { $input_errors[] = gettext("Invalid Local Network.") . " " . convert_friendly_interface_to_friendly_descr($pconfig['localid_type']) . " " . gettext("has no subnet."); } - if (!empty($pconfig['natlocalid_type'])) { + if (!empty($pconfig['natlocalid_address'])) { switch ($pconfig['natlocalid_type']) { case "network": if (($pconfig['natlocalid_netbits'] != 0 && !$pconfig['natlocalid_netbits']) || !is_numeric($pconfig['natlocalid_netbits'])) @@ -249,7 +249,7 @@ if ($_POST) { $ph2ent['disabled'] = $pconfig['disabled'] ? true : false; if(($ph2ent['mode'] == "tunnel") || ($ph2ent['mode'] == "tunnel6")){ - if (!empty($pconfig['natlocalid_type'])) + if (!empty($pconfig['natlocalid_address'])) $ph2ent['natlocalid'] = pconfig_to_idinfo("natlocal",$pconfig); $ph2ent['localid'] = pconfig_to_idinfo("local",$pconfig); $ph2ent['remoteid'] = pconfig_to_idinfo("remote",$pconfig); |