From 915121994184739af16b03b5b50212adda503a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Mon, 17 Feb 2020 18:47:11 +0000 Subject: add :full_family() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- lua/inet/core.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua/inet') diff --git a/lua/inet/core.lua b/lua/inet/core.lua index 398bc66..2b36543 100644 --- a/lua/inet/core.lua +++ b/lua/inet/core.lua @@ -75,6 +75,10 @@ function inet:family() return ret end +function inet:full_family() + return format('ipv%d', self:family()) +end + local ipv4_parser local ipv6_parser do -- cgit v1.2.1