summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-31 11:46:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-31 11:46:38 +0100
commit1333bbcf819c80c18644c8fc88463af7562f8bce (patch)
tree051da0cd426725a41e811e26fc91e62aad65324c /test
parent8a0d5ee8dcb1b2a74faa536bff92800ef8569173 (diff)
downloadrspamd-1333bbcf819c80c18644c8fc88463af7562f8bce.tar.gz
rspamd-1333bbcf819c80c18644c8fc88463af7562f8bce.zip
[Feature] Implement parsing of scoped IPv6 addresses
Diffstat (limited to 'test')
-rw-r--r--test/lua/unit/addr.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lua/unit/addr.lua b/test/lua/unit/addr.lua
index 6ec058c3f..03ceb2dbd 100644
--- a/test/lua/unit/addr.lua
+++ b/test/lua/unit/addr.lua
@@ -2,7 +2,7 @@
context("Inet addr check functions", function()
local ffi = require("ffi")
-
+
ffi.cdef[[
typedef struct rspamd_inet_addr_s rspamd_inet_addr_t;
bool rspamd_parse_inet_address (rspamd_inet_addr_t **target,
@@ -16,6 +16,8 @@ context("Inet addr check functions", function()
{'256.1.1.1', false},
{'/tmp/socket', true},
{'./socket', true},
+ {'[fe80::f919:8b26:ff93:3092%5]', true},
+ {'[fe80::f919:8b26:ff93:3092]', true},
}
for i,c in ipairs(cases) do