mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
This commit is contained in:
parent
fe56effa55
commit
ab835fed13
8 changed files with 31 additions and 27 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue