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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user