summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-04 21:09:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-04 21:09:03 +0000
commit9f414c69a6448028b895eb62096bec0cafacaeb9 (patch)
tree011a0b1d2410a0f648b4c4d6b32ed37c2775062a /usr/local/www
parent20d1251d204f2938d4a6a8889a12ade026eeb986 (diff)
downloadpfsense-9f414c69a6448028b895eb62096bec0cafacaeb9.zip
pfsense-9f414c69a6448028b895eb62096bec0cafacaeb9.tar.gz
Do not worry about subnet bits when using 0.0.0.0
Ticket #290
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index e6f5af5..2e2febd 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -153,7 +153,8 @@ if ($_POST) {
$input_errors[] = "The P2 lifetime must be an integer.";
}
if ($_POST['remotebits'] && (!is_numeric($_POST['remotebits']) || ($_POST['remotebits'] < 0) || ($_POST['remotebits'] > 32))) {
- $input_errors[] = "The remote network bits are invalid.";
+ if(!$_POST['remotenet'] == "0.0.0.0")
+ $input_errors[] = "The remote network bits are invalid.";
}
if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet'])) or $_POST['remotenet'] == "0.0.0.0") {
$input_errors[] = "A valid remote network address must be specified.";
OpenPOWER on IntegriCloud