aboutsummaryrefslogtreecommitdiffstats
path: root/lua/inet
diff options
context:
space:
mode:
Diffstat (limited to 'lua/inet')
-rw-r--r--lua/inet/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/inet/init.lua b/lua/inet/init.lua
index b91f845..ef8c5f2 100644
--- a/lua/inet/init.lua
+++ b/lua/inet/init.lua
@@ -321,6 +321,10 @@ function inet4:__pow(n)
return new_inet4(self.bip, self.mask + n)
end
+function inet4:clone()
+ return new_inet4(self.bip, self.mask)
+end
+
function inet4:contains(other)
if self.mask >= other.mask then
return false