blob: 55ce0e424cd65bdcb61349c95687a67474562982 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
local core = require 'inet.core'
local new_inet = core.new_inet
local M = {}
local mt = {}
function mt.__call(_, ...)
return new_inet(...)
end
M.is4 = core.is_inet4
M.is6 = core.is_inet6
M.is = core.is_inet
return setmetatable(M, mt)
|