diff --git a/package.json b/package.json index 1c8f89b..a0a4e55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@computernewb/superqemu", - "version": "0.1.0", + "version": "0.2.1", "description": "A simple and easy to use QEMU supervision runtime for Node.js", "exports": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/src/QemuVM.ts b/src/QemuVM.ts index 2df083e..47953d5 100644 --- a/src/QemuVM.ts +++ b/src/QemuVM.ts @@ -86,7 +86,7 @@ export class QemuVM extends EventEmitter { this.qmpInstance.on('connected', async () => { self.logger.info('QMP ready'); - if (process.platform === "win32") { + if (this.definition.forceTcp || process.platform === "win32") { this.display = new QemuDisplay({ host: this.definition.vncHost || '127.0.0.1', port: this.definition.vncPort || 5900,