summaryrefslogtreecommitdiffstats
path: root/acf/model/net.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/model/net.lua')
-rw-r--r--acf/model/net.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/acf/model/net.lua b/acf/model/net.lua
index 0792383..dc63e75 100644
--- a/acf/model/net.lua
+++ b/acf/model/net.lua
@@ -26,8 +26,8 @@ IPv4Address = class(String)
function IPv4Address:validate(context, value)
super(self, IPv4Address):validate(context, value)
local function test(...)
- if #arg ~= 4 then return true end
- for _, octet in ipairs(arg) do
+ if #{...} ~= 4 then return true end
+ for _, octet in ipairs{...} do
if tonumber(octet) > 255 then return true end
end
end