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 481ca5f31e9ca3a5f41cb37db082562dee9fed76..af6f39402504bcf18a4c7c754d92cacbb72459cc 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