mirror of
https://github.com/jarrodwatts/claude-hud.git
synced 2026-05-02 02:22:39 +00:00
build: compile dist/ [auto]
This commit is contained in:
7
dist/usage-api.js
vendored
7
dist/usage-api.js
vendored
@@ -521,7 +521,12 @@ function createProxyTunnelAgent(proxyUrl) {
|
||||
};
|
||||
proxySocket.on('data', onData);
|
||||
});
|
||||
return proxySocket;
|
||||
// Must not return the socket here. In Node.js _http_agent.js, createSocket()
|
||||
// calls: `if (newSocket) oncreate(null, newSocket)` — returning a truthy value
|
||||
// causes the HTTP request to be written to the raw proxy socket immediately,
|
||||
// before the CONNECT tunnel is established. Only deliver the final TLS socket
|
||||
// asynchronously via the callback after the CONNECT handshake succeeds.
|
||||
return undefined;
|
||||
}
|
||||
}();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user