fix(telnet): use socketTimeout option for connect and exec

This commit is contained in:
CosminPerRam 2025-06-29 18:34:47 +03:00
parent f2dfb8134f
commit 4645738699

View file

@ -346,10 +346,12 @@ export default class Core extends EventEmitter {
} }
async telnetConnect (params) { async telnetConnect (params) {
const { socketTimeout, host } = this.options
await this.telnetClient.connect({ await this.telnetClient.connect({
timeout: 2000, timeout: socketTimeout,
execTimeout: 2000, execTimeout: socketTimeout,
host: this.options.host, host,
debug: this.debugEnabled, debug: this.debugEnabled,
...params ...params
}) })