From f917c0bb6445794cc94ff895f430db84a9e77ea2 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 26 Apr 2008 21:59:45 +0000 Subject: * Minor bugfixes --- core/src/ffluci/sys.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/src/ffluci/sys.lua b/core/src/ffluci/sys.lua index 77d45cfb7a..cde1877ded 100644 --- a/core/src/ffluci/sys.lua +++ b/core/src/ffluci/sys.lua @@ -121,8 +121,8 @@ function net.arptable() end -- Returns whether an IP-Adress belongs to a certain net -function net.belongs(ip, net, prefix) - return (net.ip4bin(ip):sub(1, prefix) == net.ip4bin(net):sub(1, prefix)) +function net.belongs(ip, ipnet, prefix) + return (net.ip4bin(ip):sub(1, prefix) == net.ip4bin(ipnet):sub(1, prefix)) end -- Returns all available network interfaces -- cgit v1.2.3