fix(xen-api,xo-server): fix compatibility with XS 6.5 and Node 12

Fixes #4906
This commit is contained in:
Julien Fontanet
2020-04-02 15:52:41 +02:00
parent 9f29a047a7
commit 8424fc4c19
3 changed files with 8 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
> Users must be able to say: “I had this issue, happy to know it's fixed”
- Fix TLS error (`unsupported protocol`) with XenServer <= 6.5 and Node >= 12 for backups, consoles, and statistics [#4906](https://github.com/vatesfr/xen-orchestra/issues/4906)
### Released packages
> Packages will be released in the order they are here, therefore, they should

View File

@@ -355,6 +355,9 @@ export class Xapi extends EventEmitter {
// this is an inactivity timeout (unclear in Node doc)
timeout: this._httpInactivityTimeout,
// Support XS <= 6.5 with Node => 12
minVersion: 'TLSv1',
}
)

View File

@@ -24,6 +24,9 @@ export default function proxyConsole(ws, vmConsole, sessionId) {
host: hostname,
port: url.port || 443,
rejectUnauthorized: false,
// Support XS <= 6.5 with Node => 12
minVersion: 'TLSv1',
},
() => {
// Write headers.