refactor: Update socket.js to use consistent naming for allowReplay and allowReauth options

This commit is contained in:
Bill Church 2024-07-18 13:44:57 +00:00
parent c887a64f83
commit 27e79df8b1
No known key found for this signature in database

View file

@ -83,7 +83,9 @@ function handleConnection(socket, config) {
conn.on('ready', () => { conn.on('ready', () => {
console.log(`SSH CONNECTION READY: ${socket.id}`) console.log(`SSH CONNECTION READY: ${socket.id}`)
socket.emit('auth_result', { success: true }) socket.emit('auth_result', { success: true })
console.log('allowReplay:', config.options.allowReplay)
socket.emit('allowReplay', config.options.allowReplay || false) socket.emit('allowReplay', config.options.allowReplay || false)
console.log('allowReauth:', config.options.allowReauth)
socket.emit('allowReauth', config.options.allowReauth || false) socket.emit('allowReauth', config.options.allowReauth || false)
setupSSHListeners(socket, creds) setupSSHListeners(socket, creds)
initializeShell(socket, creds) initializeShell(socket, creds)