Success to send command to api

+ require sourcing entrypoint.sh manually
This commit is contained in:
wancat committed 2023-07-26 00:12:10 +08:00
1 parent 9f74a80551
commit 9376e16f72
7 files changed
+74 -2

No files matched your search

@@ -4,6 +4,7 @@ import Session from '../../models/session.js'
import { verifySessionJWT } from '../../utils/auth.js'
export async function newCommand(req, res) {
console.log('new command:', req.body)
const { token, command, pwd, output } = req.body
let sessionId
-1
View File
@@ -54,7 +54,6 @@ export default (server) => {
})
socket.on('message', function incoming(message) {
console.log(`From client: ${message}`)
stream.write(message)
})