summaryrefslogtreecommitdiffhomepage
path: root/core/src/ffluci
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ffluci')
-rw-r--r--core/src/ffluci/sys.lua4
1 files changed, 2 insertions, 2 deletions
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