mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 10:51:51 +00:00
protocols: fix contains_interface() implementation in several backends
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user