diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 18:31:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-03 18:31:10 +0000 |
commit | b03bca86b21c319e7772251ea573ad397f92db1f (patch) | |
tree | 18cae2a2b32883ac205eeba26df0fcc535dd968f | |
parent | 7e45fdf403dd4f63c4375509257adb7b757c6948 (diff) | |
download | pfsense-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
-rwxr-xr-x | usr/local/www/vpn_ipsec_edit.php | 2 |
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']))) { |