summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--acf/modules/awall.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/acf/modules/awall.lua b/acf/modules/awall.lua
index 0b05fb4..bb9cedc 100644
--- a/acf/modules/awall.lua
+++ b/acf/modules/awall.lua
@@ -13,7 +13,7 @@ local super = object.super
IPv4Addr = class(M.String)
-function IPv4Addr:validate(txn, path, value)
+function IPv4Addr:validate(context, value)
local function test(...)
if #arg ~= 4 then return true end
for _, octet in ipairs(arg) do
@@ -21,7 +21,7 @@ function IPv4Addr:validate(txn, path, value)
end
end
if test(string.match(value, '(%d+)%.(%d+)%.(%d+)%.(%d+)')) then
- M.error.raise(path, 'Invalid IP address')
+ M.error.raise(context.path, 'Invalid IP address')
end
end