mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-21 18:43:09 +00:00
fix #2156
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user