fix(xen-api/transports/xml-rpc): fix agent support

Introduced by c99120bd2
This commit is contained in:
Julien Fontanet 2022-04-02 20:03:21 +02:00
parent 749cdd011b
commit e44857c023
2 changed files with 2 additions and 1 deletions

View File

@ -28,4 +28,5 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xen-api patch
- @xen-orchestra/proxy patch

View File

@ -30,7 +30,7 @@ const parseResult = result => {
return result.Value
}
export default ({ secureOptions, url: { hostname, port, protocol, agent } }) => {
export default ({ secureOptions, url: { hostname, port, protocol }, agent }) => {
const secure = protocol === 'https:'
const client = (secure ? createSecureClient : createClient)({
...(secure ? secureOptions : undefined),