summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_igmpproxy_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/services_igmpproxy_edit.php')
-rwxr-xr-xusr/local/www/services_igmpproxy_edit.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/services_igmpproxy_edit.php b/usr/local/www/services_igmpproxy_edit.php
index e97869b..a6f2571 100755
--- a/usr/local/www/services_igmpproxy_edit.php
+++ b/usr/local/www/services_igmpproxy_edit.php
@@ -71,10 +71,14 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
- if ($_POST['type'] == "upstream")
- foreach ($a_igmpproxy as $proxyentry)
+ if ($_POST['type'] == "upstream") {
+ foreach ($a_igmpproxy as $pid => $proxyentry) {
+ if (isset($id) && $id == $pid)
+ continue;
if ($proxyentry['type'] == "upstream" && $proxyentry['ifname'] != $_POST['interface'])
$input_errors[] = "Only one 'upstream' interface can be configured.";
+ }
+ }
$igmpentry = array();
$igmpentry['ifname'] = $_POST['ifname'];
$igmpentry['threshold'] = $_POST['threshold'];
OpenPOWER on IntegriCloud