better logging
This commit is contained in:
@ -121,6 +121,11 @@ export class HttpProxyBridge {
|
||||
proxySocket.on('error', reject);
|
||||
});
|
||||
|
||||
// Send client IP information header first (custom protocol)
|
||||
// Format: "CLIENT_IP:<ip>\r\n"
|
||||
const clientIPHeader = Buffer.from(`CLIENT_IP:${record.remoteIP}\r\n`);
|
||||
proxySocket.write(clientIPHeader);
|
||||
|
||||
// Send initial chunk if present
|
||||
if (initialChunk) {
|
||||
// Count the initial chunk bytes
|
||||
|
Reference in New Issue
Block a user