summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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