diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-05-31 17:55:08 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-05-31 17:55:08 +0000 |
commit | 00fa955eac3b6602c4966a25854aaad8ae0d6a7f (patch) | |
tree | e596de2acf5debb13ee9142373a98ad7a9ba6fb1 /usr | |
parent | 3d24150f4b01ea8700d82e68afdc09fa4f11ca46 (diff) | |
download | pfsense-00fa955eac3b6602c4966a25854aaad8ae0d6a7f.zip pfsense-00fa955eac3b6602c4966a25854aaad8ae0d6a7f.tar.gz |
Allow "any" as a source network on nat mappings
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_nat_out_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/firewall_nat_out_edit.php b/usr/local/www/firewall_nat_out_edit.php index 7c68eed..e713fe3 100755 --- a/usr/local/www/firewall_nat_out_edit.php +++ b/usr/local/www/firewall_nat_out_edit.php @@ -84,7 +84,7 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - if ($_POST['source'] && !is_ipaddr($_POST['source'])) { + if ($_POST['source'] && !is_ipaddr($_POST['source']) && $_POST['source'] <> "any") { $input_errors[] = "A valid source must be specified."; } if ($_POST['source_subnet'] && !is_numericint($_POST['source_subnet'])) { |