mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +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()
|
skynet.fork(function()
|
||||||
repeat
|
repeat
|
||||||
local cmdline = socket.readline(fd, "\n")
|
local cmdline = socket.readline(fd, "\n")
|
||||||
|
cmdline = cmdline:gsub("(.*)\r$", "%1")
|
||||||
if not cmdline then
|
if not cmdline then
|
||||||
skynet.send(agent, "lua", "cmd", "cont")
|
skynet.send(agent, "lua", "cmd", "cont")
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user