fix(mixins/HttpProxy): fix excess event listeners warning

This commit is contained in:
Julien Fontanet
2023-06-26 10:44:53 +02:00
parent 5c6d7cae66
commit 661c5a269f
2 changed files with 4 additions and 0 deletions

View File

@@ -91,6 +91,9 @@ export default class HttpProxy {
try {
await this.#handleAuthentication(req, res, async () => {
// ServerResponse is no longer necessary
res.detachSocket(clientSocket)
const { port, hostname } = new URL('http://' + req.url)
const serverSocket = net.connect(port || 80, hostname)

View File

@@ -44,6 +44,7 @@
- @vates/task minor
- @xen-orchestra/backups minor
- @xen-orchestra/fs patch
- @xen-orchestra/mixins patch
- @vates/node-vsphere-soap major
- @xen-orchestra/vmware-explorer patch
- xen-api patch