protocols: fix contains_interface() implementation in several backends
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
d73553e530
commit
1fc8d021ed
3 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ function proto.get_interfaces(self)
|
|||
return nil
|
||||
end
|
||||
|
||||
function proto.contains_interface(self, ifname)
|
||||
function proto.contains_interface(self, ifc)
|
||||
if self:is_floating() then
|
||||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
else
|
||||
|
|
|
@ -49,7 +49,7 @@ for _, p in ipairs({"dslite", "map", "464xlat"}) do
|
|||
return nil
|
||||
end
|
||||
|
||||
function proto.contains_interface(self, ifname)
|
||||
function proto.contains_interface(self, ifc)
|
||||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
end
|
||||
|
|
|
@ -42,7 +42,7 @@ for _, p in ipairs({"6in4", "6to4", "6rd"}) do
|
|||
return nil
|
||||
end
|
||||
|
||||
function proto.contains_interface(self, ifname)
|
||||
function proto.contains_interface(self, ifc)
|
||||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue