diff options
author | Steven Barth <steven@midlink.org> | 2008-04-26 21:59:45 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-26 21:59:45 +0000 |
commit | f917c0bb6445794cc94ff895f430db84a9e77ea2 (patch) | |
tree | 13b7dd12319d7e85672c539b4ce40d47df443d15 /core/src | |
parent | f801df7d4d44d8b85ae17fa5d191b96602c1fa9a (diff) |
* Minor bugfixes
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ffluci/sys.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ffluci/sys.lua b/core/src/ffluci/sys.lua index 77d45cfb7..cde1877de 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 |