aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-03-04 15:22:45 +0000
committerMatthew Wild <mwild1@gmail.com>2022-03-04 15:22:45 +0000
commitab835fed13e300b3a49131296917f5038eb6c06c (patch)
treea55d78e6ff4e53a8ccbdd6d9e8d7509a3a7f3133 /util/ip.lua
parentfe56effa55147a7deb8ee754c092af899e662c73 (diff)
downloadprosody-ab835fed13e300b3a49131296917f5038eb6c06c.tar.gz
prosody-ab835fed13e300b3a49131296917f5038eb6c06c.zip
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
Diffstat (limited to 'util/ip.lua')
-rw-r--r--util/ip.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ip.lua b/util/ip.lua
index 20b92466..4b450934 100644
--- a/util/ip.lua
+++ b/util/ip.lua
@@ -67,7 +67,7 @@ function ip_methods:normal()
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)