mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
net/igmp-proxy: remove the notion of a "realif"
Actually the last in the plugin code!
This commit is contained in:
parent
124194c2fc
commit
e51e367336
2 changed files with 5 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
PLUGIN_NAME= igmp-proxy
|
||||
PLUGIN_VERSION= 1.5
|
||||
PLUGIN_REVISION= 5
|
||||
PLUGIN_REVISION= 6
|
||||
PLUGIN_DEPENDS= igmpproxy
|
||||
PLUGIN_COMMENT= IGMP-Proxy Service
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
|
|
|||
|
|
@ -87,13 +87,13 @@ EOD;
|
|||
|
||||
foreach ($config['igmpproxy']['igmpentry'] as $igmpcf) {
|
||||
unset($iflist[$igmpcf['ifname']]);
|
||||
$realif = get_real_interface($igmpcf['ifname']);
|
||||
$device = get_real_interface($igmpcf['ifname']);
|
||||
if (empty($igmpcf['threshold'])) {
|
||||
$threshld = 1;
|
||||
} else {
|
||||
$threshld = $igmpcf['threshold'];
|
||||
}
|
||||
$igmpconf .= "phyint {$realif} {$igmpcf['type']} ratelimit 0 threshold {$threshld}\n";
|
||||
$igmpconf .= "phyint {$device} {$igmpcf['type']} ratelimit 0 threshold {$threshld}\n";
|
||||
|
||||
if ($igmpcf['address'] <> "") {
|
||||
$item = explode(" ", $igmpcf['address']);
|
||||
|
|
@ -104,8 +104,8 @@ EOD;
|
|||
$igmpconf .= "\n";
|
||||
}
|
||||
foreach ($iflist as $ifn => $unused) {
|
||||
$realif = get_real_interface($ifn);
|
||||
$igmpconf .= "phyint {$realif} disabled\n";
|
||||
$device = get_real_interface($ifn);
|
||||
$igmpconf .= "phyint {$device} disabled\n";
|
||||
}
|
||||
$igmpconf .= "\n";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue