aboutsummaryrefslogtreecommitdiffstats
path: root/lua/inet/init.lua
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-18 17:49:05 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-18 17:49:05 +0000
commit2149068c6dec19edc33010bf2026a41dd3503c2f (patch)
tree028d1dd6743914d30e8d646f0881300f2004551b /lua/inet/init.lua
parente9d84b53e7c54f84da64967faf36c8b2791579f4 (diff)
downloadlua-inet-2149068c6dec19edc33010bf2026a41dd3503c2f.tar.gz
lua-inet-2149068c6dec19edc33010bf2026a41dd3503c2f.tar.xz
lua-inet-2149068c6dec19edc33010bf2026a41dd3503c2f.zip
define inet.mixed_networks
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'lua/inet/init.lua')
-rw-r--r--lua/inet/init.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/inet/init.lua b/lua/inet/init.lua
index bea6ff2..2dc7855 100644
--- a/lua/inet/init.lua
+++ b/lua/inet/init.lua
@@ -10,6 +10,12 @@ function mt.__call(_, ...)
return new_inet(...)
end
+do
+ local mixed_networks = set.new()
+ mixed_networks:add(new_inet('::ffff:0.0.0.0/96'))
+ M.mixed_networks = mixed_networks
+end
+
M.is4 = core.is_inet4
M.is6 = core.is_inet6
M.is = core.is_inet