Changeset

478:cf6626a12e0e

Add dummy util.net
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Mar 2023 12:28:13 +0000
parents 477:b0a8d4e9934e
children 479:2bb12fb6fcbd
files libs/net.lua
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libs/net.lua	Fri Mar 17 12:28:13 2023 +0000
@@ -0,0 +1,9 @@
+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
+}