File

libs/net.lua @ 500:674daff6c73b

use util.bitcompat from Prosody for bitwise compat layer
author Kim Alvefur <zash@zash.se>
date Fri, 23 Jun 2023 12:26:43 +0200
parent 478:cf6626a12e0e
line wrap: on
line source

return {
	pton = function (ip)
		if ip:find":" then
			return "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
		else
			return "\0\0\0\0"
		end
	end
}