fix(xen-api,xo-server): fix compatibility with XS 6.5 and Node 12
Fixes #4906
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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',
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user