diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-03-04 15:22:45 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-03-04 15:22:45 +0000 |
commit | ab835fed13e300b3a49131296917f5038eb6c06c (patch) | |
tree | a55d78e6ff4e53a8ccbdd6d9e8d7509a3a7f3133 /util/ip.lua | |
parent | fe56effa55147a7deb8ee754c092af899e662c73 (diff) | |
download | prosody-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.lua | 2 |
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) |