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) {
const { socketTimeout, host } = this.options
await this.telnetClient.connect({
timeout: 2000,
execTimeout: 2000,
host: this.options.host,
timeout: socketTimeout,
execTimeout: socketTimeout,
host,
debug: this.debugEnabled,
...params
})