mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Merge pull request #318 from felixdae/cloud
not work with telnet due to \r\n
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user