libs/net.lua@22844ac3be4e
libs/net.lua
Wed, 21 Jun 2023 12:21:09 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Wed, 21 Jun 2023 12:21:09 +0200
- changeset 492
- 22844ac3be4e
- parent 478
-
cf6626a12e0e
- permissions
- -rw-r--r--
server: Import one of Prosodys net.server implementations
Wraps up this behavior in a new module.
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
}