From e080fcebd2396c138d8c916d1cf385a88e0db246 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 8 Aug 2008 12:26:45 +0000 Subject: libs/core: Cleaned up luci.sys in favor of the new luci.ip module --- libs/core/luasrc/ip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/core') diff --git a/libs/core/luasrc/ip.lua b/libs/core/luasrc/ip.lua index 855bc4a81..68ac384dc 100644 --- a/libs/core/luasrc/ip.lua +++ b/libs/core/luasrc/ip.lua @@ -361,8 +361,8 @@ end function cidr.contains( self, addr ) assert( self[1] == addr[1], "Can't compare IPv4 and IPv6 addresses" ) - local mask1 = self:mask() - local mask2 = addr:mask() + local mask1 = self:prefix() + local mask2 = addr:prefix() if mask1 <= mask2 then return self:mask(addr:prefix()) == mask2 end -- cgit v1.2.3