summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-02-08 21:11:57 -0500
committerChris Buechler <cmb@pfsense.org>2009-02-08 21:35:27 -0500
commita6185636871e00cb7c90d88a07e1f664b719f104 (patch)
tree72a24a649bc4f831eda7aa83692563d94952034e /usr
parent4e47b62eaa8dc228968fe500b78a5c206ab01c57 (diff)
downloadpfsense-a6185636871e00cb7c90d88a07e1f664b719f104.zip
pfsense-a6185636871e00cb7c90d88a07e1f664b719f104.tar.gz
add support for IP-less interfaces (primarily for assigning tun interfaces for filtering purposes).
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces_opt.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index e177659..53284ec 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -155,7 +155,8 @@ if ($_POST) {
$reqdfieldsn = explode(",", "Description,IP address,Subnet bit count");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) {
- $input_errors[] = "A valid IP address must be specified.";
+ if($_POST['ipaddr'] <> "none")
+ $input_errors[] = "A valid IP address must be specified.";
}
if (($_POST['subnet'] && !is_numeric($_POST['subnet']))) {
$input_errors[] = "A valid subnet bit count must be specified.";
OpenPOWER on IntegriCloud