Merge pull request #318 from felixdae/cloud

not work with telnet due to \r\n
This commit is contained in:
云风
2015-08-08 16:45:21 +08:00

View File

@@ -228,6 +228,7 @@ function COMMAND.debug(address, fd)
skynet.fork(function()
repeat
local cmdline = socket.readline(fd, "\n")
cmdline = cmdline:gsub("(.*)\r$", "%1")
if not cmdline then
skynet.send(agent, "lua", "cmd", "cont")
break