This commit is contained in:
Cloud Wu
2026-06-07 06:59:35 +08:00
parent 4b7addb28a
commit f19d1605b4
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
package.cpath = "luaclib/?.so"
package.path = "lualib/?.lua;examples/?.lua"
if _VERSION ~= "Lua 5.4" then
error "Use lua 5.4"
if _VERSION ~= "Lua 5.5" then
error "Use lua 5.5"
end
local socket = require "client.socket"

View File

@@ -3,8 +3,8 @@ package.cpath = "luaclib/?.so"
local socket = require "client.socket"
local crypt = require "client.crypt"
if _VERSION ~= "Lua 5.4" then
error "Use lua 5.4"
if _VERSION ~= "Lua 5.5" then
error "Use lua 5.5"
end
local fd = assert(socket.connect("127.0.0.1", 8001))