diff options
Diffstat (limited to 'lua/inet/core.lua')
-rw-r--r-- | lua/inet/core.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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 |