summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_captiveportal.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index bc07fb2..f0d8b24 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -100,8 +100,9 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
/* make sure no interfaces are bridged */
- if (link_interface_to_bridge($pconfig['cinterface']))
- $input_errors[] = "The captive portal cannot be used when one or more interfaces are bridged.";
+ foreach ($pconfig['cinterface'] as $cpbrif)
+ if (link_interface_to_bridge($cpbrif))
+ $input_errors[] = "The captive portal cannot be used on interface {$cpbrif} since it is part of a bridge.";
if ($_POST['httpslogin_enable']) {
if (!$_POST['cert'] || !$_POST['key']) {
OpenPOWER on IntegriCloud