* Minor bugfixes
[project/luci.git] / core / src / ffluci / sys.lua
index 77d45cfb7a0d18a425a79c12710c556b397c682b..cde1877deda7dd484427c4d9bb103d0cd5098c0b 100644 (file)
@@ -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