Diff

libs/net.lua @ 478:cf6626a12e0e

Add dummy util.net
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Mar 2023 12:28:13 +0000
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
+}