Diff

util/ip.lua @ 12355:a0ff5c438e9d

util.hex: Deprecate to/from in favour of encode/decode, for consistency!
author Matthew Wild <mwild1@gmail.com>
date Fri, 04 Mar 2022 15:22:45 +0000
parent 11650:a227bc35771e
child 12931:bbae3acc6694
line wrap: on
line diff
--- a/util/ip.lua	Fri Mar 04 15:03:02 2022 +0000
+++ b/util/ip.lua	Fri Mar 04 15:22:45 2022 +0000
@@ -67,7 +67,7 @@
 end
 
 function ip_methods.bits(ip)
-	return hex.to(ip.packed):upper():gsub(".", hex2bits);
+	return hex.encode(ip.packed):upper():gsub(".", hex2bits);
 end
 
 function ip_methods.bits_full(ip)