summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-03 18:31:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-03 18:31:10 +0000
commitb03bca86b21c319e7772251ea573ad397f92db1f (patch)
tree18cae2a2b32883ac205eeba26df0fcc535dd968f /usr/local/www
parent7e45fdf403dd4f63c4375509257adb7b757c6948 (diff)
downloadpfsense-b03bca86b21c319e7772251ea573ad397f92db1f.zip
pfsense-b03bca86b21c319e7772251ea573ad397f92db1f.tar.gz
Allow remote net ip of 0.0.0.0.
See http://article.gmane.org/gmane.comp.security.firewalls.pfsense.support/965
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index 14991a6..e6f5af5 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -155,7 +155,7 @@ if ($_POST) {
if ($_POST['remotebits'] && (!is_numeric($_POST['remotebits']) || ($_POST['remotebits'] < 0) || ($_POST['remotebits'] > 32))) {
$input_errors[] = "The remote network bits are invalid.";
}
- if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet']))) {
+ if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet'])) or $_POST['remotenet'] == "0.0.0.0") {
$input_errors[] = "A valid remote network address must be specified.";
}
if (($_POST['remotegw'] && !is_ipaddr($_POST['remotegw']))) {
OpenPOWER on IntegriCloud