Log

util/ip.lua @ 13191:1266efb7101c

description author age
util: Prefix module imports with prosody namespace Kim Alvefur Fri, 17 Mar 2023 16:23:16 +0100
util.ip: Add ip.truncate() to return a new IP with only the prefix of another Matthew Wild Tue, 14 Mar 2023 18:24:58 +0000
util.ip: Add is_ip() helper method to detect if an object is an ip object Matthew Wild Tue, 14 Mar 2023 18:23:33 +0000
util.hex: Deprecate to/from in favour of encode/decode, for consistency! Matthew Wild Fri, 04 Mar 2022 15:22:45 +0000
Merge 0.11->trunk Kim Alvefur Sat, 03 Jul 2021 17:28:07 +0200
util.ip: Fix netmask for link-local address range 0.11 Kim Alvefur Sat, 03 Jul 2021 03:27:57 +0200
util.ip: Fix equality metamethod for Lua 5.3 Kim Alvefur Wed, 15 Jan 2020 21:16:08 +0100
util.ip: Add missing netmask for 192.168/16 range (fixes #1343) 0.11 Kim Alvefur Sun, 14 Apr 2019 02:06:20 +0200
util.ip: Remove redundant caching of method output (supposed to be done in ab9ddfb03d4d but lost somehow) Kim Alvefur Sat, 09 Dec 2017 20:56:37 +0100
util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result) Kim Alvefur Sat, 09 Dec 2017 20:53:37 +0100
util.ip: Do equality checking by comparing packed representation to avoid any variations Kim Alvefur Fri, 01 Dec 2017 05:13:28 +0100
util.ip: Add CGNAT network range reserved in RFC 6598 Kim Alvefur Fri, 01 Dec 2017 03:13:52 +0100
util.ip: Do exact match for longer bit counts than available Kim Alvefur Fri, 01 Dec 2017 03:31:37 +0100
util.ip: Do CIDR matching by comparing all bits at once instead of using O(n) function Kim Alvefur Fri, 01 Dec 2017 03:29:25 +0100