summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-21 20:39:05 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-21 20:39:05 +0000
commit6aadbe0ab65315dbd7ca4e8b47a7d789693c308c (patch)
tree1c51d8fde5fdce963cb0f3652f71ad628a972bc2 /usr
parent374519948938b3bfd4434e94e720916c1dfffb17 (diff)
downloadpfsense-6aadbe0ab65315dbd7ca4e8b47a7d789693c308c.zip
pfsense-6aadbe0ab65315dbd7ca4e8b47a7d789693c308c.tar.gz
MFC 7036
Allow remote net to be set to 0.0.0.0
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/vpn_ipsec_edit.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_edit.php b/usr/local/www/vpn_ipsec_edit.php
index 28323e0..dd7d17d 100755
--- a/usr/local/www/vpn_ipsec_edit.php
+++ b/usr/local/www/vpn_ipsec_edit.php
@@ -157,6 +157,8 @@ if ($_POST) {
$input_errors[] = "The remote network bits are invalid.";
}
if (($_POST['remotenet'] && !is_ipaddr($_POST['remotenet'])) or $_POST['remotenet'] == "0.0.0.0") {
+ /* allow 0.0.0.0 remote net usage */
+ if($_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