Wed, 21 Jun 2023 12:21:09 +0200
server: Import one of Prosodys net.server implementations
Wraps up this behavior in a new module.
478 | 1 | return { |
2 | pton = function (ip) | |
3 | if ip:find":" then | |
4 | return "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" | |
5 | else | |
6 | return "\0\0\0\0" | |
7 | end | |
8 | end | |
9 | } |