feat(smart-proxy): add socket-handler relay, fast-path port-only forwarding, metrics and bridge improvements, and various TS/Rust integration fixes

This commit is contained in:
2026-02-09 16:25:33 +00:00
parent 41efdb47f8
commit f7605e042e
17 changed files with 724 additions and 300 deletions

View File

@@ -200,10 +200,11 @@ tap.test('route security with block list should work', async () => {
client.connect(9993, '127.0.0.1');
});
// Should connect then be immediately closed by security
// Connection should be blocked by security - either closed or error
expect(events).toContain('connected');
expect(events).toContain('closed');
expect(result).toEqual('closed');
// Rust drops the stream immediately; client may see 'closed', 'error', or both
const wasBlocked = result === 'closed' || result === 'error';
expect(wasBlocked).toEqual(true);
expect(targetServerConnections).toEqual(0);
// Clean up