From 1f5b8fa0b553f5a7ab4a53d3dfd9bb183c7fc6fe Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Sat, 7 Nov 2015 08:25:00 +0000 Subject: [PATCH] (legacy) add comment for traceability --- src/www/vpn_ipsec_phase2.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/www/vpn_ipsec_phase2.php b/src/www/vpn_ipsec_phase2.php index c6680ba5d..123a38362 100644 --- a/src/www/vpn_ipsec_phase2.php +++ b/src/www/vpn_ipsec_phase2.php @@ -269,6 +269,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if ($pconfig['localid_type'] == "address") { $input_errors[] = gettext("You cannot configure a network type address for NAT while only an address type is selected for local source."); } + // address rules also apply to network type (hence, no break) case "address": if (!empty($pconfig['natlocalid_address']) && !is_ipaddr($pconfig['natlocalid_address'])) { $input_errors[] = gettext("A valid NAT local network IP address must be specified."); @@ -285,6 +286,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (($pconfig['remoteid_netbits'] != 0 && !$pconfig['remoteid_netbits']) || !is_numeric($pconfig['remoteid_netbits'])) { $input_errors[] = gettext("A valid remote network bit count must be specified."); } + // address rules also apply to network type (hence, no break) case "address": if (!$pconfig['remoteid_address'] || !is_ipaddr($pconfig['remoteid_address'])) { $input_errors[] = gettext("A valid remote network IP address must be specified.");