diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-21 20:39:05 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-21 20:39:05 +0000 |
commit | 6aadbe0ab65315dbd7ca4e8b47a7d789693c308c (patch) | |
tree | 1c51d8fde5fdce963cb0f3652f71ad628a972bc2 /usr | |
parent | 374519948938b3bfd4434e94e720916c1dfffb17 (diff) | |
download | pfsense-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-x | usr/local/www/vpn_ipsec_edit.php | 2 |
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']))) { |