libs/core: fix bug in contains_interface() implementation of PPPoE protocol
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Oct 2011 19:25:43 +0000 (19:25 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 9 Oct 2011 19:25:43 +0000 (19:25 +0000)
libs/core/luasrc/model/network/proto_ppp.lua

index 481ca5f..af6f394 100644 (file)
@@ -78,7 +78,7 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g"}) do
                if self:is_floating() then
                        return (netmod:ifnameof(ifc) == self:ifname())
                else
-                       return netmod.protocol.contains_interface(self, ifname)
+                       return netmod.protocol.contains_interface(self, ifc)
                end
        end