mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: prevent log flooding g from socket message
This commit is contained in:
1 parent
ee5e8afe7b
commit
d221465a73
1 file changed
-2
@@ -72,8 +72,6 @@ function onConnect(socket) {
|
|||||||
socket.emit('terminal', chunk.toString())
|
socket.emit('terminal', chunk.toString())
|
||||||
})
|
})
|
||||||
|
|
||||||
socket.on('message', logger.info)
|
|
||||||
|
|
||||||
socket.on('terminal', function incoming(message) {
|
socket.on('terminal', function incoming(message) {
|
||||||
stream.socket.write(message)
|
stream.socket.write(message)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user